21
rated 0 times
[
23]
[
2]
/ answers: 1 / hits: 17274
/ 14 Years ago, fri, november 5, 2010, 12:00:00
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?
// remove all non alphanumeric, comma and dash characters
!$7s-gd,&j5d-a#.replace(/[^w,-]/g, '');
More From » regex