I use Asp.net 4 and C# Web Forms.
In my Web Application Users can add URLS using a TextBox.
I need to make sure that every value inserted has a syntactically correct URL format (I do not need to check if the URL really exists).
So as first rule I would like check using a CustomValidator Control
if the Input inserted by the User has the value string "http://" at the beginning.
My questions?
Are you able to provide me a RegEx to add to my CustomValidator Control that will let to pass only string beginning with "http://"?
Do you have any other rule using RegEx to suggest me?
What is you best practice to detect detect syntactically correct URL?
Thanks for your help