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
/
^(?:{[\dA-F]{8}(?:-([\dA-F]{4}-){3}|[\dA-F]{12})[0-9A-F]{12}}|\([\dA-F]{8}(?:-([\dA-F]{4}-){3}|[\dA-F]{12})[0-9A-F]{12}\)|[\dA-F]{8}(?:-([\dA-F]{4}-){3}|[\dA-F]{12})[0-9A-F]{12})$
/
i
Unit Tests
CA761232-ED42-11CE-BACD-00AA0057B223
→ regex does match
abcde12345
→ regex does not match
abcde12345abcde12345abcde12345ab
→ regex does match
abcde12345abcde12345abcde12345abcdef
→ regex does not match
"
asdfadsasdfasdfasdfasdfa"
→ regex does not match
abcde12345abcde12345abcde1234567
→ regex does match
abcde12345!@#$%12345
12345ab
→ regex does not match
b5db5f70-7130-4ecc-9fca-f0d6e61b7353
→ regex does match
b5db5f70-7130-4ecc-9fca-f0d6e61b
→ regex does not match
b5db5f70-7130-4ecc-9fcaf0d6-e61b
→ regex does not match
CA761232
ED42
11CE
BACD
00AA0057B223
→ regex does not match