Don't forget that a-zA-Z is not going to work for all alphabets in all languages. This may not be a problem for your application, but if you use locales, it is a potential issue and POSIX is your friend:
s/[^[:alpha:]89\s]//g;
Dave
In reply to Re: regex to remove all non a-z and spaces
by davido
in thread regex to remove all non a-z and spaces
by coldfingertips
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |