[REBOL] more? parse
From: Rebolinth:nodep:dds:nl at: 29-Jul-2003 16:37
..Struggling...
With my experiences on the 'find function i moved towards 'parse for better
string handling.(pfffiew what a relief ;-) As it seemed in the first place...
According to the examples in [ http://www.rebol.com/docs/core23/rebolcore-
15.html#sect10.5. ] it should be possible to find characters inside a string.
oke lets try:
>> probe parse "thisisaverylongstringwhichcouldbeusedbyparse" "very"
== ["thisisa" "" "" "" "longst" "ingwhichcouldb" "us" "db" "pa" "s"]
>> parse/all "thisisaverylongstringwhichcouldbeusedbyparse" {"very"}
== ["thisisa" "" "" "" "longst" "ingwhichcouldb" "us" "db" "pa" "s"]
>> probe parse "thisisaverylongstringwhichcouldbeusedbyparse" [ thru "isa"
to "long" ]
== false
Very intresting...but not what i expected...
(I'm searching for characters inside a string...? or not?)
As it seems, a string inside 'parse is a collection of characters seperated
by white-space. (Which is more related to the human way of reading instead of
the logic of computer-data anyway but oke...)
Is it possible anyway?
Im expecting to be hit very hard here ;-) so hit me...
perhpas a native! extention on parse?
(R)egards,
Norman.
--
Conversation/lunch: "How do you Eat your Rebol in the Morning?"