Skip to main content
Regexflux

UK Phone Number

beginner

Matches UK phone numbers with optional country code.

phoneukbritishvalidation

Pattern

/(?:\+44\s?|0)(?:\d\s?){9,10}/g

Try It

0 of 6 strings matched

Explanation

Matches UK numbers starting with +44 or 0, followed by 9-10 digits with optional spaces between them.

Test Strings

Matching

  • 020 7946 0958
  • +44 7911 123456
  • 07911123456

Non-matching

  • +1 555 123 4567
  • 123456
  • +44

Language Compatibility

LanguageSupport
JSFull support
PYTHONFull support
JAVAFull support
PHPFull support
GOFull support

Code Snippets

const regex = /(?:\+44\s?|0)(?:\d\s?){9,10}/g;
const text = "your text here";
const matches = text.match(regex);
console.log(matches);

Related Patterns