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; }
In reply to Re: Help with pattern matching
by pg
in thread Help with pattern matching
by mhearse
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |