Regular Expressions 101

Community Patterns

[Fixed] Parse all simple math expressions (decimal, negative, whole)

1

Regular Expression
PCRE (PHP <7.3)

/
([\d]+[.][\d]+)|([\d]+)|([\+\-\*\/\^]+)|([\(\)])*
/
g

Description

Loading markdown...
Submitted by anonymous - 8 years ago