Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!apple!agate!dog.ee.lbl.gov!nosc!woodstock!dennis From: dennis@nosc.mil (Dennis Cottel) Newsgroups: comp.lang.perl Subject: pattern1 AND pattern2? Message-ID: Date: 25 Apr 91 19:03:13 GMT Sender: nobody@nosc.NOSC.MIL Lines: 7 I know how to get a successful match on either of two patterns: "/pattern1|pattern2/". How can I say that both have to match? I've read most of the book and skimmed the rest, but I can't see it. I can't believe it isn't possible with Perl, though! Dennis Cottel, dennis@NOSC.MIL, (619) 553-1645 Naval Ocean Systems Center, San Diego, CA 92152