Hi Paul,
"first" is not doing anything unusual to what you probably expected. More
likely you didn't realise what parse is doing:
>> hoststring: "rebol.dyndns.org"
== "rebol.dyndns.org"
>> parse hoststring "."
== ["rebol" "dyndns" "org"]
Brett.
----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, October 17, 2000 1:53 AM
Subject: [REBOL] Parsing hostnames Re:(2)
> Very cool. I didnt know you could use first in that manner.
>
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Monday, October 16, 2000 10:14 AM
> To: [EMAIL PROTECTED]
> Subject: [REBOL] Parsing hostnames Re:
>
>
> At 01:33 PM 14/10/00 -0500, you wrote:
> Try this:
> >> hoststring: "rebol.dyndns.org"
> == "rebol.dyndns.org"
> >> first parse hoststring "."
> == "rebol"
> >>
> >How do you parse a hostname only to return the first portion. For
example:
> >
> > hoststring: rebol.dyndns.org
> >
> >I would only want to return the portion up to the first "." which would
be
> >"rebol" in this case.
> >
> >Paul Tretter
>
> Mike Yaunish
> [EMAIL PROTECTED]
>