Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
Created·2019-10-21 12:14
Flavor·JavaScript

/
^(((\+|00)32\s?|0)4(60|[789]\d)\/?(((\s|\.)?\d{2}){3}|((\s|\.)?\d{3}){2})$)|(^((\+|00)32\s?|0)(\d(\s|\.|\/)?\d{3}|\d{2}(\s|\.)?\d{2})((\s|\.)?\d{2}){2}$)
/
mg
Open regex in editor

Description

Validates both mobile and landlines allows forward slash and dots according to common conventions among the people

Submitted by anonymous