I want to parse the port number 5000 from this Url
var url = "http://localhost:5000"
Regex r = new Regex(@"^(?<proto>\w+)://[^/]+?(?<port>:\d+)?/",RegexOptions.None, TimeSpan.FromMilliseconds(150));
Match m = r.Match(url);
How to setup new Regex(@"^(?\w+)://[^/]+?(?:\d+)?/" this part to parse me just the portnumber "5000"?