Skip to content

Instantly share code, notes, and snippets.

@imbaker
Last active December 29, 2015 00:19
Show Gist options
  • Select an option

  • Save imbaker/7585590 to your computer and use it in GitHub Desktop.

Select an option

Save imbaker/7585590 to your computer and use it in GitHub Desktop.
UK Phone Numbers Regular Expression
^\s*(\+[0-9]{2} ?|0)2[0-9] ?[1-9][0-9]{3} ?[0-9]{4}|(\+[0-9]{2} ?|0)1[0-9]{3} ?[1-9][0-9]{4,5}|(\+[0-9]{2} ?|0)1[0-9]{4} ?[1-9][0-9]{3,4}|(\+[0-9]{2} ?|0)1[0-9]1 ?[1-9][0-9]{2} ?[0-9]{4}|(\+[0-9]{2} ?|0)11[0-9] ?[1-9][0-9]{2} ?[0-9]{4}|(\+[0-9]{2} ?|0)7[4-9][0-9]{2} ?[0-9]{6}\s*$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment