Thanks Tom, and thanks to all who contributed.

This exercise was very educational for me. Parse is one of those
really powerful features that requires a lot of practice.

Tutorial writers take note:=20
Parse is a great double-feature; it's one of the great practical
features of REBOL (text processing), as well as the gateway to
creating domain-specific languages (little languages, mini-declarative
languages, command and natural languages, etc.). If you want to show
practicality + advanced power, Parse should probably be the keystone.

Thanks again.
Ed


On 9/5/05, Tom Conlin wrote:
> ids: ["AH-1-1" "AH-1-1G" "AH-1-G1"]
> digit: charset "0123456789"
> else: complement digit
>=20
> rule: [any else here: copy n some digit there:
> (change/part :here 1 + load n :there)
> ]
> foreach id ids[parse find/last id "-" rule]
>=20
> print ids
>
-- 
To unsubscribe from the list, just send an email to 
lists at rebol.com with unsubscribe as the subject.

Reply via email to