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

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

Re: Help with query-replace-regular expression


From: Eric Hanchrow
Subject: Re: Help with query-replace-regular expression
Date: Mon, 11 Sep 2006 08:37:47 -0700
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

Or escape "escape hell" and let "rx" write the regexp for you:

(rx "/*#" (group (or (any alpha) "_")
                 (or (any alnum) "_")) "#*/")
That evaluates to

"\\(?:/\\*#\\(\\(?:\\(?:[[:alpha:]]\\)\\|_\\)\\(?:\\(?:[[:alnum:]]\\)\\|_\\)\\)#\\*/\\)"
-- 
The only form of intelligence that really matters is the capacity to predict.
        -- Colin Blakemore





reply via email to

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