473,511 Members | 10,041 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Regular Expression for UK Phone numbers?

Hi.
Has anyone a reliable regular expression for UK phone numbers?

Done the usual google search and on regexlib but so far nothing seems close
to actually working.

Maybe of our stupid phone numbers were'nt so complicated.....

Cheers
Jun 27 '08 #1
2 2477
At least one of the patterns has a five rating on regexplib, which suggests
it should work.

http://regexlib.com/UserPatterns.asp...9-73f1663ae814

Regards

John Timney (MVP)
http://www.johntimney.com
http://www.johntimney.com/blog
"Andy" <An**@discussions.microsoft.comwrote in message
news:10**********************************@microsof t.com...
Hi.
Has anyone a reliable regular expression for UK phone numbers?

Done the usual google search and on regexlib but so far nothing seems
close
to actually working.

Maybe of our stupid phone numbers were'nt so complicated.....

Cheers

Jun 27 '08 #2


"John Timney (MVP)" wrote:
At least one of the patterns has a five rating on regexplib, which suggests
it should work.

http://regexlib.com/UserPatterns.asp...9-73f1663ae814

Regards

John Timney (MVP)
http://www.johntimney.com
http://www.johntimney.com/blog
"Andy" <An**@discussions.microsoft.comwrote in message
news:10**********************************@microsof t.com...
Hi.
Has anyone a reliable regular expression for UK phone numbers?

Done the usual google search and on regexlib but so far nothing seems
close
to actually working.

Maybe of our stupid phone numbers were'nt so complicated.....

Cheers


Only the mobile one has 5 stars, the normal phone-numbers one doesn't seem
to like London numbers (0208 etc). If anyone has any bright ideas let us
know, otherwise, I'm off to try to teach myself regexes ...
Jun 27 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
19203
by: joemono | last post by:
Hello everyone! First, I appologize if this posting isn't proper "netiquette" for this group. I've been working with perl for almost 2 years now. However, my regular expression knowledge is...
1
9476
by: seash | last post by:
Hi I need a regular expresssion which validates any kind of Phone numbers format..irrespective of the Country need hel ---seash
2
4817
by: Andrew Banks | last post by:
In VS.NET, C#, I can validate agaist US Phone number, Zip, French phone number etc in the IDE... but nothing for the UK. Is there an online reference or add in for VS.NET that includes validation...
2
2426
by: Beffmans | last post by:
Hi I want to make a regularexpressionvalidator for a textbox to allow only numbers but not a specified number of digits How to do this? ch B *** Sent via Developersdex...
3
1078
by: Joey | last post by:
I currently have a regular expression that will match textbox input for phone numbers formatted as ###-###-####. The expression is... \d{3}-\d{3}-\d{4} How can I modify this to accept the...
3
6749
by: venu | last post by:
Hi, I have a different requirement and it is : I need to validate a phone number field. It may or may not be a US phone number. The constraints are : *********************** # It should...
0
286
by: Mark Taylor | last post by:
Hello all - I have a problem here that I think can be solved using regular expressions, but not knowing enough about them, I wanted to ask. I'm pulling data from a database that we're provided...
4
2971
by: =?Utf-8?B?ZG1idXNv?= | last post by:
I am looking for a regular expression that would filter numbers in my vb.net application. The integer part could have up to 5 digits and the fractional part up to 2 digits. I came up with the...
8
4788
by: baskarpr | last post by:
I am new to regular expression. I have to validate an input, such as that should be non-negative numeric value (case 1) and non-negative numeric decimal value (case 2) (i.e. 0.5, 0.2, 10.0 etc) . I...
0
7251
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7367
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7430
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7089
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7517
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5673
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5072
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4743
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3217
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.