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

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

Re: Regepxp-help: Replacing foo with bar but not foo.*


From: Eric Hanchrow
Subject: Re: Regepxp-help: Replacing foo with bar but not foo.*
Date: Fri, 18 Aug 2006 14:07:16 -0700
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.51 (gnu/linux)

and for what it's worth, if you want to write the regular expression
in Emacs Lisp code (as opposed to typing it directly to M-x
replace-regexp), you could use

        (rx "foo" (group (not (any "."))))

-- 
Rarely do we find men who willingly engage in hard, solid
thinking.  There is an almost universal quest for easy answers
and half-baked solutions.  Nothing pains some people more
than having to think.
        -- Martin Luther King, Jr.
        from "Strength to Love," 1963.





reply via email to

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