help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: string-match bug?


From: Andreas Politz
Subject: Re: string-match bug?
Date: Thu, 10 Dec 2009 12:00:40 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux)

address@hidden writes:

> On Thu, Dec 10, 2009 at 12:34:45AM -0500, Stefan Monnier wrote:
>> > Actually, it has an infinite number of empty strings at position 0
>> > -- and at every position.
>> 
>> Good, thank you.  I never took the time to count them, so I always
>> wondered whether there really were enough of them to count as "an
>> infinite number".  I'm glad it's settled.
>
> Far from it! the more interesting question: countable? /me tries in vain
> to hide from Cantor's ghost)
>
> Regards
> -- tomás

Counting them is easy with the greedy operator.

(and (string-match "\\(\\)*" "")
     (match-end 0))

This proofs, empty strings don't exist.

-ap






reply via email to

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