in reply to Help with pattern matching
my $line = 'Oct 9 08:50:53 mail_server sendmail[30172]: j99FopoN03017 +2: from=<support@symantec.com>, size=0, class=0, nrcpts=0, proto=ESMT +P, daemon=MTA, relay=[218.1.114.182]'; if ($line =~ /relay=\[(.*?)\]/) { print $1; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Help with pattern matching
by mhearse (Chaplain) on Oct 09, 2005 at 23:53 UTC | |
by pg (Canon) on Oct 10, 2005 at 00:00 UTC | |
by Aristotle (Chancellor) on Oct 10, 2005 at 00:07 UTC |