Regular Expressions 101

Community Patterns

1...456

Match Hexadecimal Strings

1

Regular Expression
PCRE2 (PHP >=7.3)

/
\b0[xX][0-9a-fA-F]+\b
/
gm

Description

Submitted by anonymous - a month ago