Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE (PHP <7.3)

/
^[[:xdigit:]]{8}(?:\-[[:xdigit:]]{4}){3}\-[[:xdigit:]]{12}$
/
gm

Description

Checks for validity of UUIDv4 using a regular expression.

Submitted by anonymous - 5 years ago