From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: AngusC Newsgroups: gmane.emacs.help Subject: Re: regexp with match over multiple lines Date: Fri, 6 May 2011 04:20:19 -0700 (PDT) Message-ID: <31557970.post@talk.nabble.com> References: <31548643.post@talk.nabble.com> <3266E1E3-8935-49EE-8102-212C84CBD81A@Web.DE> <31552210.post@talk.nabble.com> <31552810.post@talk.nabble.com> <32F9F98A-EF2D-4133-AB40-13D09B5FB9B8@Web.DE> 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 1304680833 4014 80.91.229.12 (6 May 2011 11:20:33 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 6 May 2011 11:20:33 +0000 (UTC) To: Help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri May 06 13:20:28 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 1QIJ5A-0003kd-0X for geh-help-gnu-emacs@m.gmane.org; Fri, 06 May 2011 13:20:28 +0200 Original-Received: from localhost ([::1]:55401 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QIJ59-0000Oc-B7 for geh-help-gnu-emacs@m.gmane.org; Fri, 06 May 2011 07:20:27 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:39780) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QIJ53-0000OJ-Mh for Help-gnu-emacs@gnu.org; Fri, 06 May 2011 07:20:22 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QIJ52-00058j-M9 for Help-gnu-emacs@gnu.org; Fri, 06 May 2011 07:20:21 -0400 Original-Received: from sam.nabble.com ([216.139.236.26]:36410) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QIJ52-00058f-HL for Help-gnu-emacs@gnu.org; Fri, 06 May 2011 07:20:20 -0400 Original-Received: from isper.nabble.com ([192.168.236.156]) by sam.nabble.com with esmtp (Exim 4.69) (envelope-from ) id 1QIJ51-0005nt-OV for Help-gnu-emacs@gnu.org; Fri, 06 May 2011 04:20:19 -0700 In-Reply-To: <32F9F98A-EF2D-4133-AB40-13D09B5FB9B8@Web.DE> 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:80945 Archived-At: Peter Dyballa wrote: > > > Am 05.05.2011 um 20:15 schrieb AngusC: > >> ]]>^M >> >> >> 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: "]+>"? 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: ]+> 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.