Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE2 (PHP >=7.3)

/
(\d*)(?:X|x)(?:\^(-?\d))?
/
g

Description

spots polynomial pieces and captures the exponent and coefficient

Submitted by anonymous - 2 years ago