From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: S Boucher Newsgroups: gmane.emacs.help Subject: Re: Multiline regex Date: Mon, 21 Nov 2011 08:46:17 -0800 (PST) Message-ID: <1321893977.53490.YahooMailNeo@web161606.mail.bf1.yahoo.com> References: Reply-To: S Boucher NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1321893999 23706 80.91.229.12 (21 Nov 2011 16:46:39 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 21 Nov 2011 16:46:39 +0000 (UTC) To: Giles Chamberlin , "help-gnu-emacs@gnu.org" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Nov 21 17:46:35 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 1RSX0s-0005U9-1N for geh-help-gnu-emacs@m.gmane.org; Mon, 21 Nov 2011 17:46:34 +0100 Original-Received: from localhost ([::1]:57785 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RSX0r-0002DT-9N for geh-help-gnu-emacs@m.gmane.org; Mon, 21 Nov 2011 11:46:33 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:47369) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RSX0g-0002Cu-Fm for help-gnu-emacs@gnu.org; Mon, 21 Nov 2011 11:46:29 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RSX0c-0001n0-Ed for help-gnu-emacs@gnu.org; Mon, 21 Nov 2011 11:46:22 -0500 Original-Received: from nm9.bullet.mail.bf1.yahoo.com ([98.139.212.168]:37046) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1RSX0c-0001mu-Ag for help-gnu-emacs@gnu.org; Mon, 21 Nov 2011 11:46:18 -0500 Original-Received: from [98.139.212.149] by nm9.bullet.mail.bf1.yahoo.com with NNFMP; 21 Nov 2011 16:46:17 -0000 Original-Received: from [98.139.212.226] by tm6.bullet.mail.bf1.yahoo.com with NNFMP; 21 Nov 2011 16:46:17 -0000 Original-Received: from [127.0.0.1] by omp1035.mail.bf1.yahoo.com with NNFMP; 21 Nov 2011 16:46:17 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 535308.35816.bm@omp1035.mail.bf1.yahoo.com Original-Received: (qmail 54792 invoked by uid 60001); 21 Nov 2011 16:46:17 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1321893977; bh=6LXhRPxas0gfJGXLbOTYd1f4tN7nSNi4BtPw6ktY29I=; h=X-YMail-OSG:Received:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=TL5Hqb5zTsLcQ1i0smZMARz9vENfp/Nkt9qYeQiTehfBYMkUz8+eS0NfYrhZlRrZuScW1Z3jorixPIW+T/ChHmqaM0rssJfm3H6gTxVldJFs8qCEB8palOjbJxmCeTy+FW0c2wE6swQEXnVCwIsDnU+YgNpBO1ucFiJjNtulhiQ= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=Ng+Qoov6stWx1Pnw9BKLnNwZbicbuxRzEfs294/6Um4ddGA2jMO88g1/d/a97QkRwvuoTvS/2Wx9ALKNl3n4V+Gc8bkLiUYId8mCUwE58DTAU5WNXbG6n2Kodsz/1bAVHK60c/pLMI9EOsAJk1Ei2sedD3lDoHvg5F2GyjEK6WU=; X-YMail-OSG: l7eJrocVM1mvJafuWTwxvhIOGDlBAn0NvLiLsCTNhgHqx4u R1yH3sap0pLgCQrVRw0Vk3btGhCXFHKGDpDCcaC_DHS_tY_iLlOXmAw0JLBK nEq3MdHlaXGhhE6fD6j__V_ZwZ3sEWRc7Ttvyng5o9QJWRoczJKH7wsH.vNu kW2qfuY6M02R.KHoqiK5LVXeEmJGMy7HqrvPzGRsXEuGfNwn4yISYIYQPA2D WhPqqkGTG4Yx6tZHGmwR8q1cM7ib93PYgssQBZV6tIRJRc.zg.3w.urjQzuw fDWWZAKfOUdLqfY330nZXtK3.mD9ZDt7uVfzZmXU5IDlinnD5UWevrGafaU3 l_ZpFTJ04PLfwSQbVRHOD8FZO45Nuo4ZQmMIbKSChbxpf.THIApiVR8W4_wV d6b3WAWRdt6uU0i7pr5_e97Cx0EMZGLaivnyKK03r0REErSk4NxAmaXsUt47 3F1EpcX3wDNDbOExS8KEd5S6YaikBP545ILgtiXdKvFe9NhLwFXi8rKVi.KF mV9liW326AyeUSqoAWWZjpFWAyDbmaFfqQpzfRA-- Original-Received: from [209.5.112.166] by web161606.mail.bf1.yahoo.com via HTTP; Mon, 21 Nov 2011 08:46:17 PST X-Mailer: YahooMailWebService/0.8.115.325013 In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 98.139.212.168 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:82994 Archived-At: =0A=0A=0A=0A----- Original Message -----=0A=0A> and wish to replace the "pa= ragraphs" a..b.=A0 Using re-builder (and =0A> based=0A> on http://www.emacs= wiki.org/emacs/MultilineRegexp) I have constructed a=0A> successfully match= ing regex:=0A> =0A> "a\\(.*=0A> ?\\)*?*b"=0A=0AThe expression, has some wei= rd things.=A0 * means 0-to-n occurences, ? means 0-or-1 occurences.=A0 So, = you probably do not want *?*.=0A=0ATry M-x regexp-builder=0A=0AIt's a nice = interactive way to put together your regexp.