all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: <C.Strobl@dlr.de>
Subject: regexp question
Date: Tue, 26 Sep 2006 14:09:47 +0200	[thread overview]
Message-ID: <9773EFADA4FF6C43A49824D50B1539A7018ACD7D@exbe04.intra.dlr.de> (raw)
In-Reply-To: <9773EFADA4FF6C43A49824D50B1539A7018ACD3A@exbe04.intra.dlr.de>


hello all,

 i want to replace a block beginning with <column_right> and ending with
</column_right>, with a variable number of lines between with another
text block. is that possible with regular expressions and if yes, how?
i don't know how to find an optional number of complete lines.

how can i find this text block with a regular expression?


	<column_right>
		<!-- background attribute options: black, white, grey,
blue, red, green, orange -->
		<feature_block background="orange">
			<feature_text></feature_text>
			<feature_image
height="1">spacer_grey.gif</feature_image>
			<feature_text></feature_text>
			<feature_image
type="intern">projects/gitews/logo_175.gif</feature_image>
			<feature_text></feature_text>
			<feature_image
height="1">spacer_grey.gif</feature_image>
			<feature_text></feature_text>
			<feature_text>Work Package 4100</feature_text>
			<feature_text>provided by XYZ</feature_text>
			<feature_text></feature_text>
			<feature_image
height="5">spacer_grey.gif</feature_image>
			<feature_text></feature_text>
			<feature_header>Contact:</feature_header>
			<feature_text></feature_text>
			<feature_text></feature_text>
		</feature_block>
	</column_right>


christian

  reply	other threads:[~2006-09-26 12:09 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.7384.1159203371.9609.help-gnu-emacs@gnu.org>
2006-09-26  0:52 ` replace a textblock in multiple files Benjamin Rutt
2006-09-26 11:18   ` AW: " C.Strobl
2006-09-26 12:09     ` C.Strobl [this message]
2006-09-26 17:16       ` regexp question Peter Dyballa
2006-09-29 22:03         ` Dieter Wilhelm
2006-09-30  8:53           ` Peter Dyballa
     [not found]     ` <mailman.7422.1159272599.9609.help-gnu-emacs@gnu.org>
2006-09-27  7:58       ` Florian Kaufmann
2011-01-06 16:14 Thorsten Bonow
2011-01-07 10:05 ` tomas
     [not found] <20040924194238.40080.qmail@web51606.mail.yahoo.com>
2004-09-28 18:21 ` RegExp question JayBingham
  -- strict thread matches above, loose matches on Subject: below --
2004-09-23 20:23 JayBingham
2004-09-24 19:43 ` Ryan Bowman
     [not found] <mailman.3776.1095958718.1998.help-gnu-emacs@gnu.org>
2004-09-23 18:09 ` Stefan Monnier
2004-09-23 16:41 Ryan Bowman
2004-09-23 18:05 ` Greg Hill

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=9773EFADA4FF6C43A49824D50B1539A7018ACD7D@exbe04.intra.dlr.de \
    --to=c.strobl@dlr.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.