Regular Expressions 101

Community Patterns

There does not seem to be anything here

Community Library Entry

1

Regular Expression
ECMAScript (JavaScript)

/
(?:^\s*([+-])?|\s*([+-])(?![+-]))\s*(?:(\d+(?:\.\d*)?)\s*\*)?\s*([+-])?(?![+-])(\d+(?:\.\d*)?)?([xX])?(?:\^(\d+))?\s*
/
g

Description

use this to get value of any side of an equation. You can combine this with https://regex101.com/r/fH5kJ1/1

Submitted by Kerosene2000 - 10 years ago