Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Regular
Expressions
101
Regular
Expressions
101
Upgrade to Pro
Enterprise
Regular Expression
/
(:\b|\b:)(?!(?:(?<=\b\d:)|(?<=\b\d{2}:))\d{1,2}\b)
/
gm
Input 1
1
New
A Book: Chapter 1 or A Book :Chapter 1 Do not match if it is part of emoticons i.e :( or ): or :/ or :-) etc Do not match if it is part of a given time i.e 16:00 etc
Substitution