Regular expression for validating url
In the case of a URL, finding a regular expression that validates every type of URL possible is very difficult.
Let's construct a Reg Ex to match any of them, step by step.
If you plan to use this regular expression in your code consider to remove the username, password, port and IP address support; since such addresses should not be used for e.g.homepages of users on a profile page or within comments on a blog post.
aspdotnet-suresh offers C#articles and tutorials,csharp dot net,articles and tutorials, VB.
Please refer to the errata for this document, which may include some normative corrections.