Greetings.
I have a function that does some pattern matching with JS's RegEx and
I'm trying to use a variable inside of it. Nothing that I've done
worked, so please help me.
Here is the func:
function validateField(f ormField,limit)
{
if (formField.matc h(/^\d{1,11}\,\d{2 }$/))
{
return true;
}
}
What I need is to replace the "11" in the RegEx...