Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Reg
ular
Ex
pressions
101
Upgrade to Pro
Enterprise
Community Library
How to contribute
x
get_units_w_or
Open Workspace
PCRE (Legacy)
Match
Created 2020-07-17 01:12
1
Regular Expression
/
(?<!
\s
and
\s
)(?<!
except
\s
)(
[
A
-
Z0
-
9
]
{8}
)(?!
(
\s
and
)
)
/
gm
Description
matches units that are not next to 'and' (so matches all units next to 'or')
Submitted by
Anonymous