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
/
^(?=.*Coffee)[^\d7]*7\D*$
/
gm
Input 1
1
text... Coffee 7 ... more... text... Coffee 8 ... more... text... Coffee ... more...
Substitution
text... Coffee 7 ... more... text... Coffee 8 ... more... text... Coffee ... more...