From: Troy Denkinger Date: 2006-06-29T02:11:23+09:00 Subject: Re: remove all illegal chars form string ------=_Part_56021_11961033.1151504099121 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Also, if you're willing to accept underscores in the accepted character list, you could just use the \W character class, which is equal to [^A-Za-z0-9_]. ------=_Part_56021_11961033.1151504099121--