[REBOL] Re: Newbie parsing problem (cont'd)
From: al:bri:xtra at: 30-Mar-2002 7:11
Try something like:
>> texte: {GetActiveAccounts:request = activeaccounts
{ GetTransactions:request = ocodereview
{ CancelAccount:request = cancelacc
{ }
== {GetActiveAccounts:request = activeaccounts
GetTransactions:request = ocodereview
CancelAccount:request = cancelacc
}
>> output: make block! 3
== []
>> parse/all texte [any [copy nom to #":" (append output nom) thru #"^/"]
end]
== true
>> probe output
["GetActiveAccounts" "GetTransactions" "CancelAccount"]
== ["GetActiveAccounts" "GetTransactions" "CancelAccount"]
Andrew Martin
ICQ: 26227169 http://valley.150m.com/