$inLine =~ m|([\d\.]+)(/(\d*))?\D+([\d\.]+)(/(\d*))?|; [download]
In reply to Re: Regex for IP and Optional Port by KILNA in thread Regex for IP and Optional Port by shockme