From: James Edward Gray II Date: 2006-06-29T02:03:40+09:00 Subject: Re: remove all illegal chars form string On Jun 28, 2006, at 8:09 AM, 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" string.delete("^a-zA-Z0-9") Hope that helps. James Edward Gray II