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

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

Re: string-match bug?


From: Stefan Monnier
Subject: Re: string-match bug?
Date: Wed, 09 Dec 2009 16:33:41 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux)

> But simply by convention, isn't it?

No: it's the most consistent behavior, i.e. a natural consequence of the
usual rules obeyed by regular expressions.

> Aren't
>     (string-match "" "a")
> and
>     (string-match "" "")
> different cases in some perspective?

How 'bout

     (string-match "b" "ba")
vs
     (string-match "b" "b")


-- Stefan


reply via email to

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