unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Re: Bug in emacs regex? (v. 23.3 w32 build)
       [not found] ` <87ehy7k4aa.fsf@castleamber.com>
@ 2011-10-20 18:55   ` Stefan Monnier
  0 siblings, 0 replies; only message in thread
From: Stefan Monnier @ 2011-10-20 18:55 UTC (permalink / raw)
  To: help-gnu-emacs

>> This regexp: (where underscore is space)
>> ^\([A-Za-z]+_\)[^/] -> \1/

Note also that you're victim of search-whitespace-regexp (which
I personally consider a misfeature) so your space will actually match
any sequence of spaces (which is why the [^/] will end up matching the
"d" of "def" rather than the second space after "word1").


        Stefan


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-10-20 18:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <ga-dnX270qv93z3TnZ2dnUVZ_hudnZ2d@sysmatrix.net>
     [not found] ` <87ehy7k4aa.fsf@castleamber.com>
2011-10-20 18:55   ` Bug in emacs regex? (v. 23.3 w32 build) Stefan Monnier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).