Hi, I have in html as i earlier told u from scrape so i want to remove <see> <span> </span> <span > </span> <span </span> <li> <b> </b> </li> </see> so that i want to remove from doc after <see> i wanna remove consecutive span tags except last span tag Is it possible can anybody help me, OUTPUT: <see > <span </span> <li> <b> </b> </li> </see> Regards Prashanth Hiremath --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---