Whitespace is contained in [^\w]. Maybe you want to use \S instead of [^\w]? Or, if you just want to remove all spaces, why don't you use s/\s//g?
In reply to Re: string substitution
by Corion
in thread string substitution
by Gosh
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |