Regular Expressions 101

Community Patterns

Only Numbers with exact 6 digits

0

Regular Expression
ECMAScript (JavaScript)

/
^[0-9]{6,6}$
/
g

Description

Matches string which only has number and are 6 digit long

Submitted by anonymous - 2 years ago