fork(2) download
  1. import java.util.*;
  2. import java.lang.*;
  3. import java.io.*;
  4. import java.util.regex.*;
  5.  
  6. class Ideone
  7. {
  8. public static void main (String[] args) throws java.lang.Exception
  9. {
  10. String url = "http://www.google.com/AppleStore/84c7a26fb7aa4a0495a8e89a667a68a7/watch";
  11. String pattern = "(?<!=)[0-9a-f]{32}";
  12. Pattern compiledPattern = Pattern.compile(pattern);
  13. Matcher matcher = compiledPattern.matcher(url);
  14. if (matcher.find()) {
  15. System.out.println(matcher.group(0));
  16. }
  17. }
  18. }
Success #stdin #stdout 0.09s 48244KB
stdin
Standard input is empty
stdout
84c7a26fb7aa4a0495a8e89a667a68a7