Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
Created·2016-05-19 08:02
Flavor·JavaScript

/
(\((0{2}|\+)(\d{3})\)|((0{2})|\+)\d{3}|)\s?((7|9)9|77)(\d{6}|\s\d{3}\s\d{3}|\d{2}\s\d{4})
/
g
Open regex in editor

Description

Comprehensive regex for all the 99/79/77 mobile numbers for malta with all types of space paddings used, and with option to add +356 or 00356 with brackets and without.

Submitted by Xmiq