in reply to Re: hyphen in regular expression
in thread hyphen in regular expression

It's only affected by locale if use locale; is in effect.