in reply to Re: Improving a palindrome script...
in thread Improving a palindrome script...

Be aware that such an action would also ignore accented letters. You might want to use s/\w+//g, s/[[:word:]]+//g or s/\p{IsWord}+//g, depending whether locale and/or unicode is in effect.