From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: AngusC Newsgroups: gmane.emacs.help Subject: regexp with match over multiple lines Date: Thu, 5 May 2011 02:05:53 -0700 (PDT) Message-ID: <31548643.post@talk.nabble.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1304586373 10053 80.91.229.12 (5 May 2011 09:06:13 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 5 May 2011 09:06:13 +0000 (UTC) To: Help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu May 05 11:06:09 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QHuVb-0008Tm-7E for geh-help-gnu-emacs@m.gmane.org; Thu, 05 May 2011 11:06:07 +0200 Original-Received: from localhost ([::1]:45334 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QHuVa-0008HL-KJ for geh-help-gnu-emacs@m.gmane.org; Thu, 05 May 2011 05:06:06 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:49107) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QHuVV-0008HF-3w for Help-gnu-emacs@gnu.org; Thu, 05 May 2011 05:06:02 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QHuVT-0001Z5-T5 for Help-gnu-emacs@gnu.org; Thu, 05 May 2011 05:06:01 -0400 Original-Received: from sam.nabble.com ([216.139.236.26]:60721) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QHuVT-0001YO-Ph for Help-gnu-emacs@gnu.org; Thu, 05 May 2011 05:05:59 -0400 Original-Received: from isper.nabble.com ([192.168.236.156]) by sam.nabble.com with esmtp (Exim 4.69) (envelope-from ) id 1QHuVN-0007so-9D for Help-gnu-emacs@gnu.org; Thu, 05 May 2011 02:05:53 -0700 X-Nabble-From: anguscomber@gmail.com X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 216.139.236.26 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:80918 Archived-At: I want to remove all instances of 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 -- View this message in context: http://old.nabble.com/regexp-with-match-over-multiple-lines-tp31548643p31548643.html Sent from the Emacs - Help mailing list archive at Nabble.com.