Regular Expressions 101

Community Patterns

1...34567...900

Community Library Entry

1

Regular Expression
PCRE2 (PHP >=7.3)

/
\b(?:[er])?(?:(?:[abcd]x)|(?:ip)|[per]?(?:[sb]p|[sd]i))\b|\b(?:[sb]p|[sd]i)l?\b|\b[abcd][hl]\b|\bmsw\b|\bmxcsr\b|\b(?:r(?:1[0-5]|[0-9])[wdb])\b|\b(?:[cd]?r(?:1[0-5]|[0-9]))\b|\b[cst]w\b|\b[csdefg]s\b|\bfp_(?:[id]p|[cd]s|opc)\b|\b(?:[gil]d)?tr\b|\b(?:[er])?flags\b|\b(?:mm[0-7])\b|\b(?:[xy]mm(?:1[0-5]|[0-9]))\b|\b(?:zmm(?:3[0-2]|2[0-9]|1[0-9]|[0-9]))\b|(?:\bst[0-7]\b|(?:\bst\b\([0-7]\)))
/
gmi

Description

A RegEx to match any Intel x86-Assembly register.

Submitted by Tim Clemens - 5 months ago