Regular Expressions 101

Library entries

Detect a numeric string

Vote

-3

Regular Expression
javascript

/
^[-+]?(\d+)?\.?\d*([eE][+-]?\d+)?$
/
i

Description

Loading markdown...
Submitted by Ankur Chauhan - 7 years ago