[EMAIL PROTECTED] wrote:

> Duh!
> Got a parsing question here:
> >> parse/all "/one/two" "/"
> returns
> == ["" "one" "two"]
>
> >> parse/all "one/two" "/"
> returns
> == ["one" "two"]
>
> How may I write the code so that ["one" "two"]
> is returned regardless of whether there are any number
> of "/"

slash: charset "/"
non-slash: complement slash
blk: copy []
parse/all str [some [copy txt some non-slash (insert tail blk txt) |
slash]]


Cheers,

-pekr-

>
> TIA
> Tim

Reply via email to