Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: Enhancement - parse-[scheme] word

From: al:bri:xtra at: 12-Feb-2001 17:29

Earlier, I wrote:
> 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: > #"?"
All these functions could reside in the scheme objects, one word and it's function per scheme. Andrew Martin ICQ: 26227169 http://members.nbci.com/AndrewMartin/