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
/
(?:soy|almond)\s?[\w\(\)]+\s?(milk)
/
gm
Input 1
...almondmilk n ...almond milk n ...almond word(s) milk... y ...almondword(s)milk... y ...soymilk... n ...soy milk... n ...soy word(s) milk... y ...soyword(s)milk... y (The Ys and Ns at the end are just a reminder of which ones should match)
Extraction
...almondmilk n ...almond milk n ...almond word(s) milk... y ...almondword(s)milk... y ...soymilk... n ...soy milk... n ...soy word(s) milk... y ...soyword(s)milk... y (The Ys and Ns at the end are just a reminder of which ones should match)