Regular Expressions 101

Community Patterns

id validation

1

Regular Expression
ECMAScript (JavaScript)

/
^([1-9])([0-9]*)$
/

Description

This will catch the id which is an integer and not characters mixed with numbers

Submitted by noby nirmal - 8 years ago