Hello i am trying to validate some form input where the format needs to be.
GBR (Exactly) followed by [1-9] for 1 digit then [0-9] for 2 digits and then nothing else.
I am using it inside some jquery.
            jQuery(function(){
            jQuery("#P3_P_CODE").validate({
                expression: "if (VAL.match(/^\w[GBR]{1,3}[1-9]{1,1}\d[0-9]{1,1}$/)) return true; else return false;",
                message: "Should be a valid Project format"
            });
        });
Meaning that
/^\w[GBR]{1,3}[1-9]{1,1}\d[0-9]{1,1}$/
is my regular expression.
The problem that i am having is that no matter what i type into the input box i am still presented with an error message meaning that my regular expression must be incorrect.
I have tried several different combinations in my REGEXP to no avail.
Any help would be appreciated
 
    