Regular Expressions 101

Community Patterns

Mobile Number Malta

1

Regular Expression
ECMAScript (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

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 - 8 years ago