Community Patterns

Community Library Entry

1

Regular Expression
Created·2024-03-08 18:18
Updated·2024-03-08 19:13
Flavor·PCRE2 (PHP)

/
([+-]?(?:(?:\d+\.?\d*\*?[xX]\^\d+)|(?:\d+\.?\d*\*?[xX])|(?:[xX]\^\d+)|(?:[xX])|(?:\d+\.?\d*)))
/
g
Open regex in editor

Description

It matches any polynomial with integer or real coefficient

Submitted by eFrim