[REBOL] Enhancement - parse-[scheme] word
From: al:bri:xtra at: 12-Feb-2001 16:53
What would really, really be nice would be parse-[scheme] words. For
example:
parse-pop
parse-http
parse-finger
parse-whois
which can take a URL or string and extract a well-formed scheme from the
string or URL, and return that value. So:
parse-http S: "http://www.pearl.com?"
returns:
http://www.pearl.com
and leaves the input string at the first character that doesn't fit the
scheme. So that:
first S
returns:
#"?"
Andrew Martin
Really nice Rebolutionary...
ICQ: 26227169 http://members.nbci.com/AndrewMartin/