On Aug 31, 2006, at 6:58 AM, Craig A. Finseth wrote:

        ...
UBound(s) > 0. However, there can be exactly one "://" sequence for
   a valid URL, so you should reject it if it does not split into
        ...

Wrong.  There is no need for the "//":  the start of a URL is:

        <scheme>:<path>

<path> can start with any number of slashes: the specific syntax
depends on the scheme.  For example:

        mailto:[EMAIL PROTECTED]

is legal, as is:

        file:///<path>

or even:

        http:abc/def

In this case, it's a relative URL and you can't resolve it without
knowing the base URL.  However, it is still a valid URL.

You are correct in all of these points. My function would fail on "mailto" and "file" (I thought about that one after I sent the message), and does not work at all for relative URLs.


_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to