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
/
(?<!\sand\s)(?<!except\s)([A-Z0-9]{8})(?!(\sand))
/
gm
Unit Tests
not_and_test_1
not_and_test_1
not_and_test_3
not_and_test_4
not_and_test_5
not_and_test_6
not_and_test_7
not_and_test_8
not_and_test_8