[REBOL] Parsing query. Even Better example.
From: tbrownell:l3technology at: 27-Feb-2003 17:25
str: {Some text... Section 1
abc1, blah blah
=> abc2, blah, blah blah
=> abc3, blah blah, blah
=> abcr, blah, blah
Section 2
abchk, blah blah, blah
=> bdc6, blah blah, blah
=> ghj, blah, blah
}
Where I end up with...
n: [["abc1" "abc2" "abc3" "abcr"] ["abchk" "bdc6" "ghj"]]
Not only do I need to collect all of n, I also need to count the number of
items in each section (3 in first and 2 in second).
Observations...
- the first value of each section follows the "^/" of the line with
Section
in it
- Each subsequent value is the first word following "=>"
TB