Hi,
I have the following regular expression to validate email addresses:
\w+([-+.]\w+)*@\w+([-.]\w+)*\.(com|co\.uk|net|org|info|biz|org\.uk|tv|at|be|cc|ws|ltd\.uk|plc\.uk|ac\.uk)
It works fine for all email types listed in the above code apart from emails that end in '.org.uk'
Its because the org\.uk is being interpreted as a js command g\.
Does anyone know how to 'escape' this or any other technique that will allow the g to be interpreted as normal text?
Much appreciated.
__________________
Paul Gladwell
[email protected]
I have the following regular expression to validate email addresses:
\w+([-+.]\w+)*@\w+([-.]\w+)*\.(com|co\.uk|net|org|info|biz|org\.uk|tv|at|be|cc|ws|ltd\.uk|plc\.uk|ac\.uk)
It works fine for all email types listed in the above code apart from emails that end in '.org.uk'
Its because the org\.uk is being interpreted as a js command g\.
Does anyone know how to 'escape' this or any other technique that will allow the g to be interpreted as normal text?
Much appreciated.
__________________
Paul Gladwell
[email protected]
Comment