I’m trying validate UK Mobile Phone Numbers, that are in the format:
075xxxxxxxx 077xxxxxxxx 078xxxxxxxx and 079xxxxxxxx
Each number must either start with the above 3 numbers and be 11 digits in length.
I’ve looked around and found several regex’s such as:
But nothing I’m struggling to match my exact needs.
Has anyone got an example that would work with the numbers I’m trying to validate?
use this regex
07[5789]\d{8}if you want to set dashes correct regex like this one
07[5789]\d{3}-\d{3}-\d{2}