unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / 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
[parent not found: <mailman.4351.1403795929.1147.help-gnu-emacs@gnu.org>]

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 --
2014-06-26 15:18 regex nirvana - near miss Buchs, Kevin J.
2014-06-26 15:36 ` 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

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).