Thank you.  I knew about the /m option but I didn't know where to put it.  

-Matthew Margolis

----- Original Message -----
From: Martin Traverso <martin / fuego.com>
Date: Monday, March 7, 2005 4:14 pm
Subject: Re: Rexeg help

> On Monday 07 March 2005 4:00 pm, MATTHEW REUBEN MARGOLIS wrote:
> > 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)
> 
> Try with:
> 
> thePage.sub!(/<!--H.*H-->/m, stuff)
> 
> The "m" enables multi-line mode. Otherwise, the \n is treated as 
> end of line 
> and the substitution works on a per-line basis.
> 
> Martin
> 
>