chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] "raw" strings


From: Alex Shinn
Subject: Re: [Chicken-users] "raw" strings
Date: Sat, 11 Oct 2008 01:27:54 +0900
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2.50 (darwin)

Tobia Conforto <address@hidden> writes:

> Alex Shinn wrote:
>> If Chicken switches to irregex, then we can just use SREs and be rid
>> of the ugliness of regex syntax forever.
>
> It does look more "scalable" a syntax, if not less ugly...
>
>       (word (+ (| alphanum (".-_%")))
>             "@"
>             (+ (| alphanum (".-")))
>             "."
>             (** 2 4 alpha))
>
> vs.
>
>       /address@hidden,4}\b/

Actually, for that particular regexp (or what is intended by
it) the development version of irregex has a shorter form:

        email

-- 
Alex




reply via email to

[Prev in Thread] Current Thread [Next in Thread]