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
/
^(?:"[^"]*"|\S+)(?: (?:OR|AND) (?:"[^"]*"|\S+))*$
/
gm
Input 1
1
New
dog OR cat AND dog "Dog bot" OR cat cat OR dog AND "bob" dog cat Dog or cat and dog dog OR CAT OR
Extraction
dog OR cat AND dog "Dog bot" OR cat cat OR dog AND "bob" dog cat Dog or cat and dog dog OR CAT OR