Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Pattern for UK Mobile PhoneNumber validation.

Status
Not open for further replies.

umeshs79

Programmer
Aug 7, 2002
42
DE
Hi,
I have Pattern which validates the france phonenumber as given below.
(?:(?:[+]44)|(?:44))?0?+([0-9]{4})([0-9]{3})([0-9]{3})

Now I need that pattern should be like +447*********
Means phone number must start with 7. I tried to put 7 in above pattern but it was always inserted in my given number.
So can anybody please help me to prepare the regular experssion to validate the UK mobile number.

Thanks,
Umesh


Umesh Sharma,MCSD
India
 
Is this pattern of any use? hopefully it should match UK mobile phone numbers...

^[+]447\d{9}$
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top