A complete newcomer to web design/developing I am getting to grips with HTML & CSS but I am a complete novice in all things Javascript.

I have a contact form which has text fields for both a landline and mobile phone. I have adapted the following demo from the following link to validate my form:

I have found some websites on UK phone Regex... however they may as well be in Greek or Mandarin!!!


The current var phoneRegex as seen in my attachment messages-js is something I borrowed for testing purposes and doesn't work for UK numbers. I have looked at the links above and tried to replace it but nothing works!

If anyone could help me out with this I'd be eternally grateful!

messages-js.txtUK Numbers.txtcontact form.jpg