RegExLib.com - The first Regular Expression Library on the Web!

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Dutch phone number in E.164 internation format, route + length validation
Expression
^\+31(?:(?#AREA2D)(?:1[035]|2[0346]|3[03568]|4[0356]|5[0358]|7\d)[2-8]\d{6}|(?#AREA3D)(?:11[134578]|16[124-8]|17[24]|18[0-467]|22[2346-9]|25[125]|29[479]|31[3-8]|32[01]|34[1-8]|41[12368]|47[58]|48[15-8]|49[23579]|51[1-9]|52[1-5789]|54[13-8]|56[126]|57[0-3578]|59[1-9])[2-8]\d{5}|(?#OTHER10D)(?:6[1-68]|8[4578]|91)\d{7}|(?#OTHER8D)(?:800(?:0[013-8]|1\d|2[01]|4[1369]|[5-9][01])|90[069](?:0[0-35-9]|1[345789]|8[013468]|9[235-8]))\d{2}|(?#OTHER11D)(?:800(?:0[29]|[26-9][2-9]|3\d|4[24578])|90[069](?:04|1[0126]|[2-7]\d|8[2579]|9[0149]))\d{5})$
Description
Intended to validate html5 form input of type=tel in internation E.164 format, to validate Dutch phone numbers for valid routes and length. Geographic (open number plan: subscriber number cannot start with 0,1 or 9), and non-geographic (closed number plan), 0800 and 090x numbers including 8/11 digit length checking. Not implemented are 14xxx style government numbers. This regex can be used in PBXes as part of a larger dial plan string to allow immediate dialing as soon as the correct number of digits has been entered. Replace \+ with your international dialing prefix.
Matches
+31202345678 +319004654329 +318000403
Non-Matches
+31201234567 +31209876543 +3120234567 +31140123456
Author Rating: Not yet rated. ProBackup.nl
Source http://crashplan.probackup.nl/remote-backup/feedback.en.html
Your Rating
Bad Good

Enter New Comment

Title
 
Name
 
Comment
 
Spammers suck - we apologize. Please enter the text shown below to enable your comment (not case sensitive - try as many times as you need to if the first ones are too hard):

Existing User Comments

Copyright © 2001-2018, RegexAdvice.com | ASP.NET Tutorials