in reply to regex to remove all non a-z and spaces
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
|
|---|