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: Marcin Borkowski
Subject: Re: Strange re-search-forward
Date: Wed, 24 Feb 2016 10:08:32 +0100
User-agent: mu4e 0.9.13; emacs 25.1.50.3

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?

> Thanks,
>
> Andreas
> GNU Emacs 25.0.90.1 (i686-pc-linux-gnu, GTK+ Version 2.24.25) of 2016-01-31

Best,

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Faculty of Mathematics and Computer Science
Adam Mickiewicz University



reply via email to

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