I'm trying to use JavaScript regular expression with the exec function and hoping to get matches for a group. I just can't figure out why I'm getting no matches.
Here is my code:
var elementClass="validate[required]"
var myRegexp = /validate\\[(*)\\]/g;
var match = myRegexp.exec(elementClass);
match is null every time. I can't figure out why. It should be getting "required".
Thanks for the help!