[REBOL] Re: parse problem
From: nitsch-lists:netcologne at: 17-Nov-2003 13:41
Am Montag, 17. November 2003 12:36 schrieb Gabriele Santilli:
> Hi Patrick,
>
> On Monday, November 17, 2003, 12:02:47 PM, you wrote:
>
> ppln> Hi Gabriele,
>
> ppln> No reason at all, and you are asking because it would be more simple
> ?
>
> Indeed. Let REBOL do the hard work for you.
>
> Then, you can do something like (not tested):
>
> parse script rule: [
> any [
> set str string! (probe str)
>
> | into rule
> | skip
>
> ]
> ]
>
And have a look at load/next. You can position at the start of a string,
load/next and get [first-value rest-of-string]. so you can pick strings out
of a bigger string without loading all (which may fail because rest of the
bigger string is not rebol.
>> load/next find {Hey "jippy" hoo} {"}
== ["jippy" " hoo"]
> Regards,
> Gabriele.
-Volker