fork download
  1. import java.util.regex.Pattern;
  2. import java.util.regex.Matcher;
  3. class Ideone
  4. {
  5. public static void main (String[] args) throws java.lang.Exception{
  6. String mydata = "some string with iv('the data i want') inside";
  7. Pattern pattern = Pattern.compile("iv(\"the data i want\")");
  8. Matcher matcher = pattern.matcher(mydata);
  9. while (matcher.find()) {
  10. System.out.println(matcher.group());
  11. }
  12. }
  13. }
Success #stdin #stdout 0.08s 54892KB
stdin
Standard input is empty
stdout
Standard output is empty