Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
PCRE2 (PHP >=7.3)

/
(?<IsNumeric>^[+-]?([1-9]*|[1-9]{1,3}(,\d{3})*|[0]*)(\.\d+)?)\b$
/
gm

Description

Tests for any value that can be converted to a T-SQL numeric type.

Submitted by Noel Cruz - 8 months ago