Regular Expressions 101

Library entries

number validator

Vote

1

Regular Expression
pcre

/
(?!\d*[ -]\d)[^\d][+-]?\d*([.,]\d*)?(?<!-)(?!\d*[ -]\d)
/
gi

Description

Loading markdown...
Submitted by HMK - 7 years ago