in reply to Re: [^?-~]
in thread Matching [^?-~]

Ooohhh, very cool. "-" isn't a character it's a range specifier. Now it makes sense. thanks.

Replies are listed 'Best First'.
Re: Re: Re: [^?-~]
by chromatic (Archbishop) on Aug 10, 2002 at 03:59 UTC

    Inside a character class, '-' is a character only when it appears at the beginning (or right after the negation operator).

      Or at the end.


      Confession: It does an Immortal Body good.