Quote Originally Posted by indigo0086 View Post
There'd be a lot less room for error if you encapsulated a URI into an object or class and preformed actions on it's parts one at a time as opposed to doing it all at once with an archaic (although at times useful) method or text parsing.

I think in the modern world using a Regular expression for something so simple tends to be difficult to validate.
What??? The (substrings) are there, they can validated.

And how are you going to parse it into parts of an object?

I would have thought there would be some existing library for this anyway.