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
/
(this is.{0,2})?(an.{0,2})?(example sentence)
/
gi
Input 1
blah blah. An example sentence blah blah. This is an example sentence Something something Example sentence
Substitution
blah blah. An example sentence blah blah. This is an example sentence Something something Example sentence