You could definitely do that, too. If you just create a new Url(yourstringhere) it will raise that exception if it's malformed,
I would encourage you to look at the implementation of URL. It does only a small amount of validation on the format, but that may be enough, for your case.
-Rob
so it won't waste time creating a connection to a malformed url. I guess that's probably a better solution than the regex one, too, because it's simpler.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]