I am trying to match everything inside of an HTML file that is located between a <!--H and H--> Right now I have thePage.sub!(/<!--H((.*)|(\n))+H-->/, stuff) where thePage is a string that holds the HTML page and stuff is a string I want to sub into thePage. This does not seem to be working. Any suggestions? -Matthew Margolis