fork download
  1. class Main
  2. {
  3. public static void main (String[] args) throws java.lang.Exception
  4. {
  5. String test = "Payments - received by 04/13/13";
  6. String regex = "[a-zA-z ]* - [a-zA-Z ]* \\d{2}/\\d{2}/\\d{2}";
  7. System.out.println(test.matches(regex));
  8. }
  9. }
Success #stdin #stdout 0.07s 380160KB
stdin
Standard input is empty
stdout
true