Thanks Paul. Put command throws an error for me. I am attaching a sample htm file. Please help. I just want to replace all <br> tags with <br><p></p> tags