all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Buchs, Kevin J." <buchs.kevin@mayo.edu>
To: help-gnu-emacs@gnu.org
Subject: regex nirvana - near miss
Date: Thu, 26 Jun 2014 10:18:24 -0500	[thread overview]
Message-ID: <27747b$8snl6c@ironport10.mayo.edu> (raw)

Often I wish to match a string not followed by another string, e.g. 
"abc" without "def" following. I had a glimpse of nirvana today when I 
thought of trying this RE:  abc\(def\)\{0\}, but alas it was not to be 
had as it gets optimized and just matches "abc". It is tedious to use:  
abc\([^d]\|d[^e]\|de[^f]\), especially when the second string gets longer.

-- 
Kevin Buchs   Research Computer Services   Phone: 507-538-5459
Mayo Clinic   200 1st. St SW   Rochester, MN 55905
http://mayoclinic.org  http://facebook.com/MayoClinic  http://youtube.com/MayoClinic  http://twitter.com/MayoClinic




             reply	other threads:[~2014-06-26 15:18 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-26 15:18 Buchs, Kevin J. [this message]
2014-06-26 15:36 ` regex nirvana - near miss Yuri Khan
2014-06-26 16:35 ` Drew Adams
     [not found] <mailman.4351.1403795929.1147.help-gnu-emacs@gnu.org>
2014-06-26 15:38 ` Stefan Monnier

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='27747b$8snl6c@ironport10.mayo.edu' \
    --to=buchs.kevin@mayo.edu \
    --cc=help-gnu-emacs@gnu.org \
    /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.