You know an advert is intensely annoying when you start whistling the tune from it even though you hate it. #gocompare 3 days ago
26
Oct

How to validate a URL in .NET

System.Uri.TryCreate.

You don’t need to use regular expressions.

More generally, if you are trying to do something extremely common, the chances are that whatever framework you’re using, there’s a method or function somewhere in there which will do it for you. And it will almost certainly do it much better than your home-brewed solution will.

Comments

Comments on this entry are now closed.