Hello there! Please kindly note that I've been staring down this code for days now, and I can't seem to get why the regular expression test method doesn't work (and why Firebug says "it is not a function" when my code skips over everything that deals with the results of the test method).
I am trying to create a utility function for form validation that passes in an id and a regular expression. Here is my calling code:
regularExpressionMatchFunction("firstName", "/^[A-Za-z'\.]+\s*[A-Za-z'\.\s]*$/");
Here is the code with the erroneous component in bold:
function regularExp