remove anything thats not either a word or whitespace
$var =~ s/[^\w\s]//g;-- Brigitte 'I never met a chocolate I didnt like' Jellinek http://www.horus.com/~bjelli/ http://perlwelt.horus.at
In reply to Re: How do I remove non-word chars but leave spaces intact?
by bjelli
in thread How do I remove non-word chars but leave spaces intact?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |