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
r"
^(\[(WIP|Draft)\]|(WIP|Draft))(:|\s)?
"
gm
Input 1
New
[WIP]: lulz [Draft]: hahaha [Draft] lalalala WIP: blah WIP m000 Draft: foo Draft: nope WIP: more nope WIP yeeeep WIP:ahoy WIP: ahoy matey!
Substitution
[WIP]: lulz [Draft]: hahaha [Draft] lalalala WIP: blah WIP m000 Draft: foo Draft: nope WIP: more nope WIP yeeeep WIP:ahoy WIP: ahoy matey!