From: Douglas F Shearer Date: 2007-08-30T06:43:16+09:00 Subject: Re: Getting all google results with hpricot and connecting two gsub statements to just one? Hi Kazaam, On 29 Aug 2007, at 13:45, kazaam wrote: > > So my first question is can I connect the both gsub statments above > in just one gsub which should increase the speed? Or is there even > a better way than using gsub for cleaning the results? why covered this a while ago in one of his blog posts: http:// redhanded.hobix.com/inspect/nostrils.html The non-graphic pastie version can be seen here: http:// pastie.caboo.se/54741 And just for completeness, I wrapped it up in a rails controller:http://douglasfshearer.com/blog/site-search-using-google- in-ruby-on-rails Cheers. Douglas F Shearer dougal.s@gmail.com http://douglasfshearer.com