Regular Expressions 101

Library entries

RegEx - Exclude zero

Vote

1

Regular Expression
pcre

/
^(?!0*(\.0+)?$)(\d+|\d*\.\d+)$
/

Description

Loading markdown...
Submitted by http://stackoverflow.com/questions/8910972/regex-exclude-zero - 6 years ago