Hi
I'm having problems with a RegEx within a JScript site. I know this RegEx works as I've used it in other languages, but it refuses to do it within jscript.
Any one got any ideas?
This is a regex to check an outcode of a uk postcode, and the above is a valid outcode, but it returns false all of the time.
Any ideas?
Thanks
Tony
I'm having problems with a RegEx within a JScript site. I know this RegEx works as I've used it in other languages, but it refuses to do it within jscript.
Any one got any ideas?
Code:
var myRegEx = new RegExp("[A-Z]{1,2}\d","gi");
Response.write(myRegEx.test(String("WR12")));
This is a regex to check an outcode of a uk postcode, and the above is a valid outcode, but it returns false all of the time.
Any ideas?
Thanks
Tony