From: Michael Campbell Date: 2003-04-17T06:56:48+09:00 Subject: Re: [Q] Reg. Expressios with "\n" --- Daniel Carrera wrote: > > > I want an RE that matches this string, but '.' doesn't match > the \n > > > character. I guess I could replace the \n's by something else, > but I'd > > > rather not alter the original string if I can avoid it. > > > > IIRC you can use the multiline modifier "m" on > > the RE. I haven't tried this: > > > > str =~ /(.*<\/html>)/m > > Thanks! that worked. Incidentally, if it's readability you crave, ("you" in the general sense), I find myself going to %r{} notation more and more, if for no other reason than not having to backwhack /'s. __________________________________________________ Do you Yahoo!? The New Yahoo! Search - Faster. Easier. Bingo http://search.yahoo.com