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
/
car (?=apple|apple apple|apple banana|apple carrot|apple doormat|apple elephant|apple frankfurter|apple gelatin|apple humus|apple indiana|apple joseph|apple kayak|apple letter|apple meal|apple nope|apple orange|apple pie|apple quick|apple rest|apple sort|apple this|apple under|apple view|apple with|apple xerox|apple yes|apple zap|banana|banana apple|banana banana|banana carrot|banana doormat|banana elephant|banana frankfurter|banana gelatin|banana humus|banana indiana|banana joseph|banana kayak|banana letter|banana meal|banana nope|banana orange|banana pie|banana quick|banana rest|banana sort|banana this|banana under|banana view|banana with|banana xerox|banana yes|banana zap|carrot|carrot apple|carrot banana|carrot carrot|carrot doormat|carrot elephant|carrot frankfurter|carrot gelatin|carrot humus|carrot indiana|carrot joseph|carrot kayak|carrot letter|carrot meal|carrot nope|carrot orange|carrot pie|carrot quick|carrot rest|carrot sort|carrot this|carrot under|carrot view|carrot with
/
g
Input 1
car zap view crashed car xerox elephant crashed car zap crashed car humus zap crashed car yes banana crashed car crashed ^ the above shouldn't match
Extraction
car zap view crashed car xerox elephant crashed car zap crashed car humus zap crashed car yes banana crashed car crashed ^ the above shouldn't match