in reply to stripping everything but numbers and letters

What's wrong with \W ?

$string=~s/\W//g
Because underscore is also word char?
  • Comment on Re: stripping everything but numbers and letters