- --- In firstname.lastname@example.org, "crlender" <crlender@...> wrote:
> In a regex character class, parentheses don't have a special meaningYou are correct that these things don't HAVE to be escaped. I
> and don't need to be escaped. In a similar vein, I've seen JSLint
> complain about character classes like [#+-], saying that the "-"
> should be escaped. Since it's at the end of the list (which is the
> recommended practice in this case), it can't be part of a range, and
> doesn't have to be escaped.
recommend that you escape them anyway as a general approach to error
- Is there a simple method that jslint would be happy with for removing all matching substrings like
(cutting all text starting with #, from all lines in the input)?