From: Wes Gamble Date: 2009-06-27T01:14:08+09:00 Subject: Re: Is there a way to abandon a gsub if you're using a block? Robert Klemme wrote: > If you provide more detail about the input and the text that you want > to match we might be able to help fix the regular expression. IMHO > that approach is superior to simply returning the match effectively > replacing it with itself (which does work of course). self.html.gsub!(/]*?href=(['"]) # tag inside of another one. I tried for about 30 minutes yesterday using a (?!) assertion, but couldn't quite get it. Thanks, Wes -- Posted via http://www.ruby-forum.com/.