Regular Expressions 101

Library entries

Number Input That Supports Simple Math Expressions

Vote

1

Regular Expression
javascript

/
^([-+]?[0-9]*\.?[0-9]+[\/\+\-\*%])+([-+]?[0-9]*\.?[0-9]+)$|^[+-]?[0-9]+$
/

Description

Loading markdown...
Submitted by David Weitzenfeld - 7 years ago