all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Another replace regexp with list question
@ 2013-06-10  1:03 Leandro Marcolino
  2013-06-10 10:30 ` Peter Dyballa
  0 siblings, 1 reply; 8+ messages in thread
From: Leandro Marcolino @ 2013-06-10  1:03 UTC (permalink / raw)
  To: help-gnu-emacs

Hello, everyone!..

This time I am trying to find occurrences of:

"<span style='color:white'>&#31169;&#31169;&#31169;&#31169;</span>", but
the number of &#31169; can change from 1 to many.

And I want to replace each &#31169; of the list to a white space (besides
removing the <span> clause). So, if there were x "&#31169;", I need x " ".
Is it possible to do this using replace-regexp?.. Of course I can't just
look for "&#31169;" and replace to " ", because I have occurrences of
"&#31169;" that are not inside the group "<span
style='color:white'></span>".

I tried something like "<span style='color:white'>\(\(&#31169;\)+\)</span>
-> \,(cond (\1 " ")))", but then I lose the information of how many
"&#31169;" were there, and everything changes to a single " "....

Thanks for your help!.. :)

Regards,
Leandro


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

end of thread, other threads:[~2013-11-05  0:21 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.1310.1370826222.22516.help-gnu-emacs@gnu.org>
2013-06-10  5:10 ` Another replace regexp with list question Barry Margolin
2013-06-10  7:50   ` Leandro Marcolino
2013-06-10 13:57     ` Drew Adams
2013-11-05  0:21   ` WJ
2013-06-11 18:23 ` Sean McAfee
2013-06-11 22:13   ` Leandro Marcolino
2013-06-10  1:03 Leandro Marcolino
2013-06-10 10:30 ` Peter Dyballa

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.