[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: regexp with match over multiple lines
From: |
AngusC |
Subject: |
Re: regexp with match over multiple lines |
Date: |
Fri, 6 May 2011 04:20:19 -0700 (PDT) |
Peter Dyballa wrote:
>
>
> Am 05.05.2011 um 20:15 schrieb AngusC:
>
>> ]]>^M
>> </description>
>>
>> and I am using:
>> <\1\[CDATA.*^J*>
>
>
> If you see ^M then you should switch to some DOS or MAC encoding. But
> what's puzzling me is that not all lines have ^M at the end. Does this
> work: "<!\[CDATA\[[^>]+>"? I think other expressions would become too
> greedy...
>
> BTW, is this \1 what you are really using or is it a typo, actually
> meaning "!"? (Which isn't special in Lisp, I think.)
>
This is the key bit which works:
<!\[CDATA\[[^>]+>
I need to enhance it to end with ]]> (in case there are embedded <> angle
brackets - but I can handle that one.
--
View this message in context:
http://old.nabble.com/regexp-with-match-over-multiple-lines-tp31548643p31557970.html
Sent from the Emacs - Help mailing list archive at Nabble.com.
- regexp with match over multiple lines, AngusC, 2011/05/05
- Re: regexp with match over multiple lines, Peter Dyballa, 2011/05/05
- Re: regexp with match over multiple lines, AngusC, 2011/05/05
- Re: regexp with match over multiple lines, Deniz Dogan, 2011/05/05
- Re: regexp with match over multiple lines, AngusC, 2011/05/05
- Re: regexp with match over multiple lines, PJ Weisberg, 2011/05/05
- Re: regexp with match over multiple lines, Peter Dyballa, 2011/05/05
- Re: regexp with match over multiple lines, AngusC, 2011/05/06
- Re: regexp with match over multiple lines, Peter Dyballa, 2011/05/06
- Re: regexp with match over multiple lines,
AngusC <=
- Re: regexp with match over multiple lines, Peter Dyballa, 2011/05/06
Re: regexp with match over multiple lines, ken, 2011/05/05
Re: regexp with match over multiple lines, Andreas Röhler, 2011/05/05