From: Newb Newb Date: 2008-08-23T18:43:27+09:00 Subject: Re: REGULAR EXPRESSION > The . stays for any character, as such your regular expression seems > to be way too greedy. > This however should not harm too much if there is only one img tag in > one line, although backtracking > might be a performance issue. I do however fail to understand the > behavior you described. > Anyway, I believe the following regex should do fine: > > item.description.gsub! //, "" > > HTH > Robert > > > -- > http://ruby-smalltalk.blogspot.com/ > > There's no one thing that's true. It's all true. thanks a lot it works -- Posted via http://www.ruby-forum.com/.