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

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

regexp to replace value in xml file


From: srinookala
Subject: regexp to replace value in xml file
Date: 19 Sep 2006 04:51:39 -0700
User-agent: G2/1.0

I'd like to use regexp to replace values in a tag.

I'd like to replace

<msgRecvTime>
<DateTime>(any value here)</DateTime>


with

<msgRecvTime>
<DateTime>2003-01-07T12:00:00.000Z</DateTime>

How would I do this with emacs regexp.

I tried

<msgRecvTime>C-q C-j<DateTime>+</DateTime>

which doesn't find the string



reply via email to

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