From: Tom Werner Date: 2006-07-22T05:44:57+09:00 Subject: Re: Newbie Question: delete all non alphanumeric characters Jeremy Tregunna wrote: > > And it should look like this: > > "567576hgjhgjh&**)".sub(/[^0-9a-zA-Z]+/i, '') > > Note the + > #sub only does one replacement; adding a + will replace one chunk of non-alphas, but not any others in the string. Tom -- Tom Werner Helmets to Hardhats Software Developer tom@helmetstohardhats.org www.helmetstohardhats.org