Try it out on these example inputs:

back to RegexSwap.

UK Phone Number

Regular expression:

^(\+44[[:space:]]?7[[:digit:]]{3}|\(?07[[:digit:]]{3}\)?)[[:space:]]?[[:digit:]]{3}[[:space:]]?[[:digit:]]{3}$

Categories:

Popularity:

You need to be logged in to cast votes on regexes.

Good
0
Bad
0

Author description and comments (3)

Topic by
kasper

2009-01-13
19:10

Description

Phone numbers for United Kingdom.

Comment by
joeharris76


It looks like this regex will only allow a UK *mobile* number. Valid first digits for the UK overall are 1-3,5,7-9

Comment by
kasper


Hi Joe,

Thanks for the input! Can you provide a few examples? It's been so long time since I submitted this expression and I cannot even remember what my source of information was :) But I'm open for refining it!

Comment by
joeharris76


01DDD DDD DD[D]? - Normal (can be 1 digit shorter)
02DDD DDD DDD - Normal
03DDD DDD DDD - Normal
07DD DDD DDD - Mobile
0800 DDD DDDD - Freefone
08DD DDD DDD - Non-geopgraphic
09DD DDD DDD - Premium

:-) Joe

You need to be logged in to participate

In order to post your own comments on this regex, you need to be logged in.

Username:

Log in by clicking the login link at the top of the screen