Regular Expressions 101

Community Library

Community Library Entry

0

Regular ExpressionOpen Workspace

/
^(((\+|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

Description
Created·2019-10-21 12:14
Type·Match
Flavor·JavaScript

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

Submitted by Anonymous
Open Workspace