Start a new topic

Regex and telephone numbers

Hi Chaps!

Am building an IOM profile to import telephone numbers. Unfortunately the data we receive can be very messy and we like our telephone numbers to be very tidy!

So I am looking for regex to do the following:

Strip any spaces

Remove +44 (if there)

Add a leading zero (if not there)

 

As I am a regex numpty, step by step instructions would be great!

 

Thank you in anticipation!

 

Gemma

Login or Signup to post a comment