Community Patterns

Community Library Entry

0

Regular Expression
Created·2022-10-03 08:55
Flavor·PCRE2 (PHP)

/
(\d*)(?:X|x)(?:\^(-?\d))?
/
g
Open regex in editor

Description

spots polynomial pieces and captures the exponent and coefficient

Submitted by anonymous