in reply to Re: Regex for IP and Optional Port
in thread Regex for IP and Optional Port

Actually, borrowing some syntax from andye I got:
$inLine =~ m|([\d.]+)/?(\d*)\D+([\d.]+)/?(\d*)|;
And the results are even in $1,$2,$3,$4. Wooooo! :)