[Top][All Lists]

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

Re: regexp with match over multiple lines

From: ken
Subject: Re: regexp with match over multiple lines
Date: Thu, 05 May 2011 09:08:33 -0400
User-agent: Thunderbird (X11/20110429)

On 05/05/2011 05:05 AM AngusC wrote:
> I want to remove all instances of <![CDATA[ ... ]]> data in a file.  My
> regexp works if the start and end tag is on the same line.  But not if the
> end tag is not on this same line.  Is it possible to apply regex across
> multiple lines.
> My regex is: <\!\[CDATA\[.*\]\]> and that works if all on one line.  
> What can I do?  Is this where lisp required?
> Angus

"<\!\[CDATA\[^>]*?>" should work.

"Truth is the most valuable thing we have, so I try to conserve it."
        --Mark Twain

reply via email to

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