Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Reg
ular
Ex
pressions
101
Upgrade to Pro
Enterprise
Regular Expression
/
^(1[0-2]|0?[1-9]):([0-5][0-9])([AaPp][Mm])(?:\|(1[0-2]|0?[1-9]):([0-5][0-9])([AaPp][Mm]))*$
/
gm
Input 1
New
12:00am 12:00am|1:20PM|9:30Pm 12:00am|1:20PM 12:00am|1:20PM|9:3
Substitution
12:00am 12:00am|1:20PM|9:30Pm 12:00am|1:20PM 12:00am|1:20PM|9:3