Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
Created·2022-03-30 06:24
Flavor·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})$
/
Open regex in editor

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