From: Erik Veenstra Date: 2006-06-29T02:13:04+09:00 Subject: Re: remove all illegal chars form string > Is there a simple way to remove all but the legal chars from > a string. where the legal chars are for example: a-z A-Z 0-9 > So everything should be removed from the string but these > characters. "exam@p Le3|�" --> "exampLe" p "exam@p Le3|�".gsub(/[^a-zA-Z0-9]/, "") gegroet, Erik V. - http://www.erikveen.dds.nl/