replace html tag

Hi

Please help me i want to replace the tag

</li><span> to </li></see><see><span> at time

can anybody in world give me an solution

A little more context would be helpful.

Fred

I don't know Hpricot, but what you can do is: first open the file and do a gsub on the content, save it in a different/same file, and then open it using Hpricot. Just to warn you, won't be very efficient if files are huge or there are lot many files you want to process.

I think, there must be some more simpler way of doing it as well.

Thanks, Abhinav

Can you let us know how you did it using Hpricot?