* regexp to replace value in xml file
@ 2006-09-19 11:51 srinookala
2006-09-19 11:52 ` Brendan Halpin
0 siblings, 1 reply; 4+ messages in thread
From: srinookala @ 2006-09-19 11:51 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: regexp to replace value in xml file
2006-09-19 11:51 regexp to replace value in xml file srinookala
@ 2006-09-19 11:52 ` Brendan Halpin
2006-09-19 14:04 ` srinookala
0 siblings, 1 reply; 4+ messages in thread
From: Brendan Halpin @ 2006-09-19 11:52 UTC (permalink / raw)
srinookala@gmail.com writes:
> <msgRecvTime>C-q C-j<DateTime>+</DateTime>
Try
<msgRecvTime>C-q C-j<DateTime>.+</DateTime>
Brendan
--
Brendan Halpin, Department of Sociology, University of Limerick, Ireland
Tel: w +353-61-213147 f +353-61-202569 h +353-61-338562; Room F2-025 x 3147
mailto:brendan.halpin@ul.ie http://www.ul.ie/sociology/brendan.halpin.html
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: regexp to replace value in xml file
2006-09-19 11:52 ` Brendan Halpin
@ 2006-09-19 14:04 ` srinookala
2006-09-19 14:40 ` Brendan Halpin
0 siblings, 1 reply; 4+ messages in thread
From: srinookala @ 2006-09-19 14:04 UTC (permalink / raw)
Brendan Halpin wrote:
> srinookala@gmail.com writes:
>
> > <msgRecvTime>C-q C-j<DateTime>+</DateTime>
>
> Try
> <msgRecvTime>C-q C-j<DateTime>.+</DateTime>
>
> Brendan
> --
> Brendan Halpin, Department of Sociology, University of Limerick, Ireland
> Tel: w +353-61-213147 f +353-61-202569 h +353-61-338562; Room F2-025 x 3147
> mailto:brendan.halpin@ul.ie http://www.ul.ie/sociology/brendan.halpin.html
That didn't work
For example the string I have is:
<msgRecvTime>
<DateTime>2005-09-07T12:00:00.000Z</DateTime>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: regexp to replace value in xml file
2006-09-19 14:04 ` srinookala
@ 2006-09-19 14:40 ` Brendan Halpin
0 siblings, 0 replies; 4+ messages in thread
From: Brendan Halpin @ 2006-09-19 14:40 UTC (permalink / raw)
srinookala@gmail.com writes:
> Brendan Halpin wrote:
>> srinookala@gmail.com writes:
>>
>> > <msgRecvTime>C-q C-j<DateTime>+</DateTime>
>>
>> Try
>> <msgRecvTime>C-q C-j<DateTime>.+</DateTime>
>
>
> That didn't work
>
> For example the string I have is:
>
> <msgRecvTime>
> <DateTime>2005-09-07T12:00:00.000Z</DateTime>
>
It works for me:
If I evaluate
(re-search-forward "<msgRecvTime>
<DateTime>.+</DateTime>")
it puts the point after this:
<msgRecvTime>
<DateTime>2005-09-07T12:00:00.000Z</DateTime>[point]
Brendan
--
Brendan Halpin, Department of Sociology, University of Limerick, Ireland
Tel: w +353-61-213147 f +353-61-202569 h +353-61-338562; Room F2-025 x 3147
mailto:brendan.halpin@ul.ie http://www.ul.ie/sociology/brendan.halpin.html
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2006-09-19 14:40 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-19 11:51 regexp to replace value in xml file srinookala
2006-09-19 11:52 ` Brendan Halpin
2006-09-19 14:04 ` srinookala
2006-09-19 14:40 ` Brendan Halpin
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).