fork download
  1. import java.util.regex.Matcher;
  2. import java.util.regex.Pattern;
  3.  
  4. class Main
  5. {
  6. public static void main (String[] args) throws java.lang.Exception
  7. {
  8. Pattern p = Pattern.compile("a(a|aa)*b");
  9. Matcher m = p.matcher(new String(new char[37]).replace("\0", "a"));
  10. m.find();
  11. }
  12. }
Success #stdin #stdout 6.8s 711168KB
stdin
Standard input is empty
stdout
Standard output is empty