I’m trying to match elements with a name that is 'container1$container2$chkChecked', using a regex of '.+\$chkChecked', but I’m not getting the matches I expect when the element name is as described. What am I doing wrong?
I’m trying to match elements with a name that is ‘container1$container2$chkChecked’ , using a
Share
my guess, by your use of quotes, is you did something like
which won’t work because js takes advantage of the \ in its string interpretation as an escape so it never makes it into the regex interpreter
instead you want