Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE2 (PHP >=7.3)

/
(([a-fA-F0-9]{8})-([a-fA-F0-9]{4})-([a-fA-F0-9]{4})-([a-fA-F0-9]{4})-([a-fA-F0-9]{12}))
/
gm

Description

detect uuid V4 in string case insensitive. matches: 1d95e013-3c09-4883-88f1-4337ba0b8ddc AND 1D95E013-3C09-4883-88F1-4337BA0B8DDC

Submitted by ywk - 3 years ago