[REBOL] Rebol parsing 101
From: mpcweber:comcast at: 1-Oct-2003 21:20
im brand new to Rebol and not getting the hang of string parsing
for example: assume i have string
fcontents
== {09/29/03 ATM/POS ACTIVITY $28.68 (pending) 09/29/03 ATM/POS ACTIVITY $11.41 09/29/03
ATM/POS ACTIVITY $
21.71 ...
i would like to convert this string into a set of blocks where each block has 4 elements
of the types [date string money string] (the 4th element is optional
[09/29/03 "ATM/POS ACTIVITY" $28.68 (pending)]
[09/29/03 "ATM/POS ACTIVITY" $11.41 ]
[09/29/03 "ATM/POS ACTIVITY" $21.71 ]
i've been plodding around trying to get anything to work, like
find/any fcontents ["09/*/03"]
but im not understanding how to isolate the elements
i suspect i should be able to create something akin to a regular expresion that i can
use as a pattern to apply to the string