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

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

Re: multiple search strings in query-replace-regexp


From: Ilya Zakharevich
Subject: Re: multiple search strings in query-replace-regexp
Date: Sat, 7 Oct 2006 03:45:21 +0000 (UTC)
User-agent: trn [how to get a version via %-escapes???] with a custom header

[A complimentary Cc of this posting was sent to
David Kastrup 
<dak@gnu.org>], who wrote in article <85ejtlyuhv.fsf@lola.goethe.zz>:
> >> C-M-% \(foo\)\|\(rock\)\|metal RET
> >> \,(cond (\1 "bar") (\2 "house") ("goa")) RET
> >
> > To make it useful, one needs a function to count the number of
> > parentheses in a given regular expression.  Is there?

> Uh WHAT?  You just type the above stuff.  Why would that not be
> useful?

How many people do you know who would type something like this?  :-(

And to have a "generally usable" wrapper, one needs a way to identify
how many paren groups are inside your "foo" and "rock" regular
expressions.

Hope this helps,
Ilya


reply via email to

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