On 2010-08-02 07:22:33 -0400, Lucky Nl said: > <p>test one </p><p> </p><p>test one test > onetest onetest one</p> <p>test two test > two test two test two </p> <p> </p> str = str.gsub(/ /,"").gsub(/<p>\s*<\/p>/,"") This will remove any from your html, and after that, remove any <p> tag that contained only whitespace character. It's less than optimal, as you could combine it in one go, probably, but I don't want to spend time on stuff you should be able to do on your own. -- Thank you for your brain. -MrZombie