Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Reg
ular
Ex
pressions
101
Reg
ular
Ex
pressions
101
Upgrade to Pro
Enterprise
Regular Expression
/
\b[AP]M\W+(?:-\W+)?([^:\n]+):
/
g
Input 1
1
New
4/16/14, 10:24 AM - John Doe likes your photo 4/16/14, 10:24 AM John Doe replied to your comment 4/16/14, 10:24 AM John Doe: Whats going on 4/16/14, 10:24 AM John Doe: Whats going on : hmmm
Substitution