Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
Created·2019-03-01 11:53
Flavor·PCRE (Legacy)

/
^\+[1-9]\d{6,13}$
/
gm
Open regex in editor

Description

  • Number must start from + and end with a number.
  • Number can be 7 to 15 digit long including + sign in length.
  • Starting with + and leading 0 is not allowed.
Submitted by anonymous