I keep getting an error for this regular expression:
^((([1-9])|(1[0-2])):([0-5])(0|5)/s(A|P)M)$
It's supposed to be for a time that ends in 0 or 5. So here are some that should work:
- 1:25 PM
- 11:00 AM
- 9:55 PM
But I keep getting this error message:
Internal error matching pattern '^((([1-9])|(1[0-2])):([0-5])(0|5)/s(A|P)M)$'
against value '1:00 PM'
What am I doing wrong?