Is there a good a method out there that will check to see if a string is a relative path
Examples:
path = "/absolute/path/to";
path = "relative/path/to"
path = "http://www.absolutePathAsWellWithoutTrailingSlash.com"
path = "file:///www.absolutePathAsWellWithoutTrailingSlash.com"
You can see that checking just for a start slash won't do, to determine if it is absolute or relative.
Is there a good method for this out there, or should I write it myself?