fork download
  1. /* package whatever; // don't place package name! */
  2.  
  3. import java.util.*;
  4. import java.util.regex.*;
  5. import java.lang.*;
  6. import java.io.*;
  7.  
  8. /* Name of the class has to be "Main" only if the class is public. */
  9. class Ideone
  10. {
  11. public static void main (String[] args) throws java.lang.Exception
  12. {
  13. try {
  14. Pattern.compile("(?<=.*a)");
  15. Pattern.compile("(?<=.*a.*)");
  16. Pattern.compile("(?<=.*a.*.*)");
  17. Pattern.compile("(?<=.*)");
  18. Pattern.compile("(?<=.*..*..*..*..*)");
  19.  
  20. Pattern.compile("(?<=a.*)");
  21. } catch (Exception e) {
  22. e.printStackTrace();
  23. }
  24.  
  25. }
  26. }
Success #stdin #stdout #stderr 0.1s 320320KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
java.util.regex.PatternSyntaxException: Look-behind group does not have an obvious maximum length near index 6
(?<=a.*)
      ^
	at java.util.regex.Pattern.error(Pattern.java:1955)
	at java.util.regex.Pattern.group0(Pattern.java:2863)
	at java.util.regex.Pattern.sequence(Pattern.java:2051)
	at java.util.regex.Pattern.expr(Pattern.java:1996)
	at java.util.regex.Pattern.compile(Pattern.java:1696)
	at java.util.regex.Pattern.<init>(Pattern.java:1351)
	at java.util.regex.Pattern.compile(Pattern.java:1028)
	at Ideone.main(Main.java:20)