Simon Strandgaard
3/7/2005 10:14:00 PM
On Mon, 7 Mar 2005 23:12:18 +0100, Simon Strandgaard <neoneye@gmail.com> wrote:
> On Tue, 8 Mar 2005 07:00:52 +0900, MATTHEW REUBEN MARGOLIS
> <mrmargolis@wisc.edu> 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 this
Sorry too fast.. forgot the multiline flag
thePage.gsub!(/(<!--H)(.*?)(H-->)/m, $1 + stuff + $3)
>
> --
> Simon Strandgaard
>