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

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

Re: regexp to replace value in xml file


From: Brendan Halpin
Subject: Re: regexp to replace value in xml file
Date: Tue, 19 Sep 2006 15:40:26 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

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


reply via email to

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