Community Patterns

Community Library Entry

1

Regular Expression
Created·2015-11-09 04:33
Flavor·PCRE (Legacy)

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

Description

Includes +, -, /, *, and ^. Can parse decimals. Can parse negative whole numbers and decimals. Can parse parentheses.

Used only for parsing math expressions using regex.

Submitted by anonymous