in reply to Re: [^?-~]in thread Matching [^?-~]
Inside a character class, '-' is a character only when it appears at the beginning (or right after the negation operator).
Or at the end.