help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

regex nirvana - near miss


From: Buchs, Kevin J.
Subject: regex nirvana - near miss
Date: Thu, 26 Jun 2014 10:18:24 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0

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 via email to

[Prev in Thread] Current Thread [Next in Thread]