in reply to Re: perl regex extraction from a large input file
in thread perl regex extraction from a large input file
The way you store the "Case-Url" and the "Req-URL" as hashes causes the loss of the link between the two. I don't know whether that is important or not. A rather simple approach should do in this case:
while(<DATA>){ print "$1 - " if /\[.*\] - (.*)/i; print "$1\n" if /[*]+([^*]+)/; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: perl regex extraction from a large input file
by CountZero (Bishop) on Sep 14, 2013 at 10:20 UTC | |
by hdb (Monsignor) on Sep 14, 2013 at 10:30 UTC |