Alright, am I stupid or what. I have this regexp: $_ =~ /foo.+bar/s or this one $_ =~ /foo.+bar/sm And I would expect either of them to find foo bar in a given text file. The problem I am having is that it is not matching. Is there something I am doing wrong? Am I stupid for trying to parse and compile stats from my logfiles? It feels like it. On the subject, I am trying to match blocks of text that look like this (mail logs from Mercury, ick!): HELO mail.house.leg.state.mn.us MAIL FROM:<billy at bob.org> RCPT TO:<john at jackson.com> DATA - 72 lines, 3977 bytes. QUIT - 0 sec. elapsed, connection closed Mon Feb 12 08:54:40 2001 Suggestions on methods? ____________________________ Mike Neuharth ADCS Technology Specialist http://www.umn.edu/adcs E-Mail : mjn at umn.edu Page Mail : 6126486512 at page.metrocall.com http://supermonkeycollider.dyndns.org/ ____________________________