Regular Expressions 101

Community Patterns

Hardware ID

0

Regular Expression
PCRE2 (PHP >=7.3)

/
^[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$
/
i

Description

Checks whether the input is a hardware ID

Submitted by Justman10000 - a year ago