Title |
Test
Find
Pattern Title
|
Expression |
([0]{1}[6]{1}[-\s]*[1-9]{1}[\s]*([0-9]{1}[\s]*){7})|([0]{1}[1-9]{1}[0-9]{1}[0-9]{1}[-\s]*[1-9]{1}[\s]*([0-9]{1}[\s]*){5})|([0]{1}[1-9]{1}[0-9]{1}[-\s]*[1-9]{1}[\s]*([0-9]{1}[\s]*){6}) |
Description |
Meets dutch phone number requirements.. One posted here before didn't allow the 0 after the first digit of the call ID (so the second number or later after the prefix), which should be allowed. I modified that one to meet full requirements now..
Enjoy!! |
Matches |
06 12345678 | 010-1234560 | 0111-101234 |
Non-Matches |
05-43021212 | 123-4567890 | 1234567890 |
Author |
Rating:
Dennis de Jong
|
Source |
|
Your Rating |
|
Title: Incorrect syntax.
Name: g1smd
Date: 8/4/2012 2:19:46 PM
Comment:
Incorrect syntax. The ([0]{1}[6]{1} should be (06 here. The [1-9]{1}[\s]* should be [1-9]\s* here. The [0]{1}[1-9]{1}[0-9]{1}[-\s]* should be 0[1-9][0-9][\s-]* here. With these and other fixes the expression will parse a LOT faster.
Title: The term 'Dutch' is wrong!
Name: Oscar
Date: 8/31/2011 12:29:15 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: dennie bedankt
Name: mister does
Date: 6/23/2011 4:16:00 PM
Comment:
dennie bedankt, dennie bedankt, dennie dennie dennie bedankt!
Title: dennie bedankt
Name: mister does
Date: 6/23/2011 4:15:53 PM
Comment:
dennie bedankt, dennie bedankt, dennie dennie dennie bedankt!
Title: dsfsdfdsf
Name: dsfsdf
Date: 5/19/2008 9:27:41 AM
Comment:
dsfsdf
Title: does match illegal mobile phonenumbers
Name: Jasper
Date: 12/14/2005 4:37:52 AM
Comment:
also 0601234567 is not correct ..
Title: Not quit accurate
Name: Roel "OsFa" Duysserinck
Date: 2/7/2005 6:33:36 AM
Comment:
strange, you say that a telephone number without a - isn't correct?? you see it more often that a - is left out when filling out a web-form