blog.spicelogic.com —
Either you are an Web Application Developer or a Desktop Application Developer, you must have faced a necessity to validate an URL string provided by your user. In order to validate, you must have searched in Google for Regex for Validating Url. Have you checked the search result ? There are many articles and blogs offering many controversial Regex patterns to validate an URL. Not a single Regex is the MOST appropriate for validating any type of URL. Moreover, if you want to get a Regex Pattern that will validate any possible URL in this universe then you will end up with a very long Regex String that wont be efficient to use. So, why bother when .NET Framework has a built in procedure to validate an URL for you ? Yes, you wont believe that, how you missed this opportunity to validate an url without messing up with Regex.
read more...