Re: Slight regexp problem
- --- In email@example.com, "pauanyu" <pcxunlimited@...> wrote:
>Thanks. Please try it now.
> var regexp = /]/;
> I understand the second error is JSLint telling me I need to escape
> the "]", and that's fine. The problem is the first error. It says I
> need to escape "-", but there isn't any "-" in the code at all!
- --- In firstname.lastname@example.org, "Douglas Crockford" <douglas@...> wrote:
>Yeah, that's better.
> Thanks. Please try it now.
What about the other weird characters like /[^]/ and /[-]/? Wouldn't those be "empty class" as well?