Oh, ok. So you mean like... if($_ =~ /\bJan\b.*\bDec\b/){ print $_; }
? -----Original Message----- From: Harold Castro [mailto:[EMAIL PROTECTED] Sent: Thursday, February 03, 2005 5:02 PM To: Tim Johnson; beginners@perl.org Subject: RE: Is there a regexp that will match two or more expressions??? --- Tim Johnson <[EMAIL PROTECTED]> wrote: > > > You mean like this? I'm not 100% sure what you're > asking. I guess not. For example, [Tim Johnson] <snip> I just wanted to tell my program to look for those lines that contains both Jan and 2005 regardless of their positions. I've tried matching /(Jan & Dec)/ but it didn't worked. Any more idea? -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>