all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Andreas Röhler" <andreas.roehler@easy-emacs.de>
To: Marcin Borkowski <mbork@mbork.pl>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Strange re-search-forward
Date: Wed, 24 Feb 2016 10:18:45 +0100	[thread overview]
Message-ID: <56CD7575.2040808@easy-emacs.de> (raw)
In-Reply-To: <871t828ohb.fsf@mbork.pl>



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	other threads:[~2016-02-24  9:18 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-24  8:27 Strange re-search-forward Andreas Röhler
2016-02-24  9:08 ` Marcin Borkowski
2016-02-24  9:18   ` Andreas Röhler [this message]
2016-02-24  9:52     ` Marcin Borkowski
2016-02-24 16:45       ` Nick Dokos

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=56CD7575.2040808@easy-emacs.de \
    --to=andreas.roehler@easy-emacs.de \
    --cc=help-gnu-emacs@gnu.org \
    --cc=mbork@mbork.pl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.