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

[REBOL] Parsing problem

From: blackeye::subdimension::com at: 14-Nov-2002 22:19

Hello, i am new to rebol and i have a parsing problem. If somebody could help me, i'd be grateful. Here is the code : url: "www.asdfasdf.com:123/path/path/file.htm" parse/all url [ copy host [ [to ":" skip copy port to "/" ] | [ to "/"]] copy path to end ] the goal is to have the words: host = www.asdfasdf.com port = 80 path = path/path/file.htm but the host word get the value: www.asdfasdf.com:80 I tried many thins but i have now no idea of the solution. Tank you