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(formField,limit)
{
if (formField.match(/^\d{1,11}\,\d{2}$/))
{
return true;
}
}
What I need is to replace the "11" in the RegEx with the var limit.
How can I do this???
TIA,