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