all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / 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
[parent not found: <mailman.1299.1227715545.26697.help-gnu-emacs@gnu.org>]

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 --
2008-11-26 14:41 Utilizing Regexp (or something else) to replace an arbitrary string length of the same character with the same string length of another character Tim Visher
2008-11-26 16:31 ` Peter Dyballa
     [not found] <mailman.1299.1227715545.26697.help-gnu-emacs@gnu.org>
2008-11-26 17:25 ` 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

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.