unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Utilizing Regexp (or something else) to replace an arbitrary string length of the same character with the same string length of another character.
@ 2008-11-26 14:41 Tim Visher
  2008-11-26 16:31 ` Peter Dyballa
  0 siblings, 1 reply; 7+ messages in thread
From: Tim Visher @ 2008-11-26 14:41 UTC (permalink / raw)
  To: help-gnu-emacs

Hello Everyone,

I have a bunch of arbitrarily long strings of '=' characters and I
would like to replace them one for one with '-' characters.  I know I
could do this with a simple find and replace using isearch, but that
would require me going through them one at a time.  I'm wondering if
there's a way to do this with a regex such as:

    r/(=+)/-{length of n}

Obviously that's a major bastardization of syntax and doesn't really
exist in any language, but I figure this should be able to be done in
Emacs somehow.

Thanks in advance!

-- 

In Christ,

Timmy V.

http://burningones.com/
http://five.sentenc.es/ - Spend less time on e-mail




^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2008-11-28  1:01 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.1299.1227715545.26697.help-gnu-emacs@gnu.org>
2008-11-26 17:25 ` Utilizing Regexp (or something else) to replace an arbitrary string length of the same character with the same string length of another character Xah Lee
2008-11-27 20:24   ` Tim Visher
2008-11-27 23:23     ` Peter Dyballa
     [not found]     ` <mailman.1392.1227828233.26697.help-gnu-emacs@gnu.org>
2008-11-28  0:01       ` Andreas Politz
2008-11-28  1:01     ` tyler
2008-11-26 14:41 Tim Visher
2008-11-26 16:31 ` Peter Dyballa

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