I'm verifying the following day time format 13-10-21 6:07:59PM in my application. which keeps changing everytime ( dynamic ). So I have used the following basic regular expression \d+-\d+-\d+\s+\d:\d+:\d+\D+ and it wored fine . all of a sudden it fails sayong expected value is \d+-\d+-\d+\s+\d:\d+:\d+\D+ but the acctual value is 13-10-21 6:07:59PM .
I'm really stuck with this . How to fix this or is there any other easy way to do it