fork(1) download
  1. import java.util.*;
  2. import java.lang.*;
  3. import java.io.*;
  4. import java.util.regex.*;
  5.  
  6. /* Name of the class has to be "Main" only if the class is public. */
  7. class Ideone
  8. {
  9. public static void main (String[] args) throws java.lang.Exception
  10. {
  11.  
  12.  
  13. Pattern pat = Pattern.compile("\\.\\d{2}\\.");
  14. Matcher m = pat.matcher("av.12.za");
  15.  
  16. System.out.println(m.find());
  17.  
  18.  
  19.  
  20. }
  21.  
  22.  
  23.  
  24. }
Success #stdin #stdout 0.1s 27872KB
stdin
Standard input is empty
stdout
true