From: 7stud -- Date: 2009-07-28T16:00:45+09:00 Subject: Re: Regexp Help Jillian Kozyra wrote: > Hi, > > I am looking for a way to do the following: > > I have some html in strings, mostly links (i.e. href="http://mysite.com">). I need to delete these lines. I've been > trying to do this, but it's not working out: > > question.gsub! ("$/i", "") > or also: question.gsub! ("$/i", "") > > (and various permutations of these two). > > How would one go about this? > > Thanks, > Jillian q = 'Hello world.' result = q.gsub(//, "") puts result --output:-- Hello world. -- Posted via http://www.ruby-forum.com/.