From: "gene.tani@..." Date: 2006-06-29T02:15:57+09:00 Subject: Re: remove all illegal chars form string thomas coopman wrote: > Hi, > > 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" > The easiest way to find stuff is to search comp.lang.ruby through Google groups: http://groups.google.com/group/comp.lang.ruby/browse_frm/thread/c9b63420fe8f66a9?q=remove+non-ASCII& ruby-talk-google was set up in late April and doesn't have much searchable history