Uri.TryCreate vs Regex
Today, Ken Crismon reviewed my code checked in recently and shot me an email, said that it should be better to use Uri.TryCreate method to validate a url.
My case is if the string value starts with "http" or "https", then we need to make it clickable.
My original code was using regex
Regex.IsMatch(url, "^https?://");
And it seems works well.
But I am not familiar with Uri.TryCreate method, never used before.
So I am going to have a try. Yes, for most cases it works great. But suddenly I found the value like "anything:balabala" also will be treated as a valid url, that's not make sense...

After a bit of research and found there is a thread in stackoverflow gives a good explanation for this:
http://stackoverflow.com/questions/5377381/why-uri-trycreate-return-true-for-uri-like-mailfoo
Then I discussed this with Ken and finally decided to use regex to do the validation.
Although I may won't do any change for the code, I'd like to say thanks to Ken, he let me know Uri.TryCreate, and know what's the scenarios that we can use Uri.TryCreate... thanks buddy, have a good weekend!