Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
ECMAScript (JavaScript)

/
^(\++\(+([\s\d]{1,5})+\)+([\s]{1})|\++\(+([\s\d]{1,5})|\++([\s\d]{1,5})|0)+(([\d]{2,3})+([\s]{1})|([\d]{2,3}))+(([\d]{3})+([\s]{1})|([\d]{3}))+([\d]{3,4})$
/

Description

Description

This is a simple Regular Expression for Mobile Numbers. Still needs more work.

It currently supports the following formats:

  • +(x) aa bbb cccc
  • +(x) aaa bbb ccc
  • +x aa bbb cccc
  • +x aaa bbb ccc
  • +xaaabbbccc
  • aaaaaaaaaa
Submitted by monseiurMystere - 3 years ago