Regular Expressions 101

Library entries

Detecting numbers

Vote

2

Regular Expression
pcre

/
[\-]?(\d+\.?(?:\d+)?(?:[eE][\-]?\d+)?)
/

Description

Loading markdown...
Submitted by Mohammed Yehia - 6 years ago