const string strRegex = @"^(http|https|ftp)\://[a-zA-Z0-9\-\.]+\.[a-zA-Z]{2,3}"
"(:[a-zA-Z0-9]*)?/?([a-zA-Z0-9\-\._\?\,\'/\\\+&%\$#\=~])*[^\.\,\)\(\s]$";
Regex rgxUrl = new Regex(strRegex, RegexOptions.Compiled
|RegexOptions.IgnoreCase);
If my URL is http://89.212.232.65 then this regex for checking URL fails. How must I change the regex so that will also work for IP addresses?
[I took editing liberties with the strRegex
definition which is all one contiguous constant -msw]