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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Belgium phone number in E.164 internation format, route + length validation
Expression
^\+32(?#8DIGIT)(?:1[0-69]|[23][2-8]|4[236-9]|5\d|6[01345789]|7[01689]|8[0-79]|9[012])\d{6}$
Description
Intended to validate html5 form input of type=tel in internation E.164 format, to validate Belgian phone numbers for valid routes and length. As Belgium has a closed number plan the regex is relatively short and in theory any subscribing number is possible, even ones starting with 0, 1 or 9 as the area code needs to be dialed always. 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
+3290123456 +3292238853 +3247547372 +3292324648
Non-Matches
+32475473727 +324754737 +3201123456 +3299654321
Author Rating: The rating for this expression. 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-2024, RegexAdvice.com | ASP.NET Tutorials