in reply to Exclude some non-word char from Regexp \W

I think that "\W" is the same as "^\w", so \W less a few chosen characters would be ^\w -, wouldn't it ?

Rats. I meant, of course: \W is the same as [^\w], so \W less space and hyphen would be [^\w -].

  • Comment on Re: Exclude some non-word char from Regexp \W