Regular Expressions 101

Library entries

Parse all simple math expressions (decimals, whole, negative)

Vote

-2

Regular Expression
pcre

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

Description

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