all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* regex nirvana - near miss
@ 2014-06-26 15:18 Buchs, Kevin J.
  2014-06-26 15:36 ` Yuri Khan
  2014-06-26 16:35 ` Drew Adams
  0 siblings, 2 replies; 4+ messages in thread
From: Buchs, Kevin J. @ 2014-06-26 15:18 UTC (permalink / raw)
  To: help-gnu-emacs

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




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-06-26 16:35 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.4351.1403795929.1147.help-gnu-emacs@gnu.org>
2014-06-26 15:38 ` regex nirvana - near miss Stefan Monnier
2014-06-26 15:18 Buchs, Kevin J.
2014-06-26 15:36 ` Yuri Khan
2014-06-26 16:35 ` Drew Adams

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.