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 -].
In reply to Re: Exclude some non-word char from Regexp \W
by gone2015
in thread Exclude some non-word char from Regexp \W
by zangetsu
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |