From: Tom Werner Date: 2006-07-22T05:19:19+09:00 Subject: Re: Newbie Question: delete all non alphanumeric characters dominique.plante@gmail.com wrote: > for fun, I started irb, then typed > > "567576hgjhgjh&**)".gsub(/^[0-9a-z]/i, '') > > It returned > > 67576hgjhgjh&**) > > The carat goes inside the brackets (it inverses the character class) Tom -- Tom Werner Helmets to Hardhats Software Developer tom@helmetstohardhats.org www.helmetstohardhats.org