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

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

Re: Strange re-search-forward


From: Andreas Röhler
Subject: Re: Strange re-search-forward
Date: Wed, 24 Feb 2016 10:18:45 +0100
User-agent: Mozilla/5.0 (X11; Linux i686; rv:38.0) Gecko/20100101 Icedove/38.5.0



On 24.02.2016 10:08, Marcin Borkowski wrote:
On 2016-02-24, at 09:27, Andreas Röhler <andreas.roehler@easy-emacs.de> wrote:

Evaluating in buffer

(re-search-forward "[ -?]+" nil t)

foo.bar baz

;;;;;;;

matches the period after foo.

Any explanation?
space: ascii 32
period: ascii 46
question mark: ascii 63

46 ∈ {32,...,63}

so what's wrong?


Ohh, shame on me.

Minus must come first if meant literally.

Thanks!



reply via email to

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