JSLint reports Insecure \'^\' for the following line. Why is that? Or is it just going to complain any time I want to negate a character class?
// r
Consider using \W instead of /^\w/
\W
/^\w/
"!$7s-gd,&j5d-a#".replace(/\W/g, '');
For your particular case this would not work because you want to leave comma and dash characters, but I think it is worth mentioning.