ibanix has asked for the wisdom of the Perl Monks concerning the following question:
(This collects information on a F5 BigIP loadbalancer, for those of you who are curious).foreach $line (@connections) { if ($line =~ /^\s*(\d+\.\d+\.\d+\.\d+):\d+ \s*->\s*(\d+\.\d+\.\d+\.\d+):\d+ \s*->\s*(\d+\.\d+\.\d+\.\d+)/x) { $client_ip{$1}{$iteration}++; $vips{$2}{$iteration}++; $frontend{$3}{$iteration}++; } }
update (broquaint): title change (was Regex redux)
|
---|
Replies are listed 'Best First'. | |
---|---|
(z) Re: Regex redux
by zigdon (Deacon) on Nov 19, 2002 at 18:41 UTC | |
Re: Regex redux
by dws (Chancellor) on Nov 19, 2002 at 19:30 UTC | |
by ibanix (Hermit) on Nov 19, 2002 at 20:55 UTC | |
Re: Regex redux
by shemp (Deacon) on Nov 19, 2002 at 18:47 UTC | |
Re: Regex redux
by adrianh (Chancellor) on Nov 19, 2002 at 21:52 UTC | |
Re: Regex redux
by petral (Curate) on Nov 20, 2002 at 02:36 UTC |