Title |
Test
Find
Pattern Title
|
Expression |
([0]{1}[6]{1}[-\s]*([1-9]{1}[\s]*){8})|([0]{1}[1-9]{1}[0-9]{1}[0-9]{1}[-\s]*([1-9]{1}[\s]*){6})|([0]{1}[1-9]{1}[0-9]{1}[-\s]*([1-9]{1}[\s]*){7}) |
Description |
Matches dutch telephone numbers WITHOUT country code prefix
Tests on mobile numbers, 3 digits prefix city-codes and 4 digit prefix city codes.
* Disallows a 0 directly after a prefix
* Allows space or a - between prefix and telephonenumber
* Also allows space between telephone digits to compensate the nasty habit of making telphone numbers more readable |
Matches |
06 539 439 99 | 023-123 1233 | 023 121 12 12 |
Non-Matches |
06-539-439-99 | 05-75 46 30 50 |
Author |
Rating:
Nico Lubbers
|
Source |
Nico Lubbers |
Your Rating |
|
Title: The term 'Dutch' is wrong!
Name: Oscar
Date: 8/31/2011 12:24:20 AM
Comment:
The term 'Dutch' is wrong! This is a telephone format from The Netherlands, not 'Dutch'!
'Dutch' is NOT a country but a language which is spoken in different countries (with different forms of telephone numbers).
As such, please do not use such a regexp if you know your users speak 'Dutch'. Their phonenumber pattern might be quite different!
Title: Fix
Name: Patrick de Bie
Date: 1/24/2008 7:56:12 AM
Comment:
i think it should be like this:
([0]{1}[6]{1}[-\s]*([0-9]{1}[\s]*){8})|([0]{1}[0-9]{1}[0-9]{1}[0-9]{1}[-\s]*([0-9]{1}[\s]*){6})|([0]{1}[0-9]{1}[0-9]{1}[-\s]*([0-9]{1}[\s]*){7})
Title: Fix
Name: Patrick de Bie
Date: 1/24/2008 7:55:52 AM
Comment:
i think it should be like this:
([0]{1}[6]{1}[-\s]*([0-9]{1}[\s]*){8})|([0]{1}[0-9]{1}[0-9]{1}[0-9]{1}[-\s]*([0-9]{1}[\s]*){6})|([0]{1}[0-9]{1}[0-9]{1}[-\s]*([0-9]{1}[\s]*){7})
Title: Errors
Name: Dennis
Date: 11/30/2004 6:50:58 AM
Comment:
Some existent phone numbers aren't passing this regular expression..
like 0132-330124
It allows not a single zero after the prefix, while it should not allow a zero at only the first spot, eg 0132-033124
However, at the 2nd to 6th spot after the prefix, a zero can exist..
This is also the same for mobile numbers and the 3 digit prefix numbers..