my $ip = qr/\d+\.\d+\.\d+\.\d+/; foreach $line (@connections) { if ($line =~ /^\s*($ip):\d+ \s*->\s*($ip):\d+ \s*->\s*($ip)/x) { $client_ip{$1}{$iteration}++; $vips{$2}{$iteration}++; $frontend{$3}{$iteration}++; } }
-- Dan
In reply to (z) Re: Regex redux
by zigdon
in thread Matching an IP address
by ibanix
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |