|
I've removed the unnecessary foreach loop and
the $line variable. I'm assuming that 2152 OUTLOOK.exe is at the beginning of a
line.
The trick is to use the capturing capability of the
regex.
$pid =
'00000'; # invalid PID
while (<DRWTSN>)
{
if
(($pid) =
/App\:.+pid=(\d+)/)
{
print "<b>$_</b><br>"; } if
(/^$pid\s/) {
print "$_<br>";
}
if (/When\:/)
{
print "$_<br>"; } if (/Exception\Snumber\:/) { print "$_<br><br><br>"; } } Gary
|
Title: Message
- RE: Parsing pids from drwtsn.log Gary MacDonald
- RE: Parsing pids from drwtsn.log Nikko Odiseos
- RE: Parsing pids from drwtsn.log Gary MacDonald
- RE: Parsing pids from drwtsn.log Brim, Robert
