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
/
(\b[^,\v\s]+?,\s[^,\v\s]+?)((?:\s(?:and|or)\s)(\s?(?:above|across|after|at|around|before|behind|below|beside|between|by|down|during|for|from|in|inside|onto|of|off|on|out|through|to|under|up|with|other)\s)?(?:\w+)(?:[ \]\)\?\.\;\!\:]))
/
gm
Unit Tests
There are no unit tests, click
here
to add some.