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
/
(?=.*Apple)(?=.*Car)(?=.*Bat)(?!.*(?:,|^)(?:(?!Apple|Bat|Car).)+(?:,|$))^.*$
/
gm
Input 1
1
New
Bat, Car, Apple Other, Bat, Car, Apple Car, Bat, Apple Car, Other, Bat, Apple Apple, Car, Bat Apple, Car, Bat, Stick Bat, Car Apple Car, Apple, Bat
Extraction
Bat, Car, Apple Other, Bat, Car, Apple Car, Bat, Apple Car, Other, Bat, Apple Apple, Car, Bat Apple, Car, Bat, Stick Bat, Car Apple Car, Apple, Bat