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 (?(?=t\w{3})true|false)
~
gm
Input 1
1
New
this is true this is false this is something else is this true is this false
Substitution
this is true this is false this is something else is this true is this false