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
r"
^(?![^#]*\b(?:abc|def|ghi)\b)[^#]*#.*
"
gm
Input 1
1
New
he is abc but # not xyz he is good # but small he might ghi but # not abc will he will help but # hope for def to come he is going for vabc but # not sure
Substitution