From: sishen Date: 2008-01-03T19:37:03+09:00 Subject: Re: hpricot - parse html ------=_Part_30815_6865549.1199356629168 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline You should also process the \n, \r char. So I think the regex should be "". On Jan 3, 2008 11:37 AM, Jim Clark wrote: > Try this... > > C:\temp>irb > irb(main):001:0> mystring = "xxx yy zz" > => "xxx yy zz" > irb(main):002:0> mystring.gsub(//,'') > => "xxx yy zz" > > Regards, > Jim > > K. R. wrote: > > hi @all > > > > I would like to parse html code and remove all tags that starts with > > > > > > How can I remove this tags with regex? I used the gsub! function to > > manipulate the string. > > > > Thanks for helping... > > > > > ------=_Part_30815_6865549.1199356629168--