From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Lennart Borgman (gmail)" Newsgroups: gmane.emacs.help Subject: Re: how can I make regexp expression effective across many lines Date: Mon, 29 Jan 2007 22:16:58 +0100 Message-ID: <45BE644A.9000509@gmail.com> References: <71ab86070701291301q34ea49e8ked19710cad016517@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1170105480 32585 80.91.229.12 (29 Jan 2007 21:18:00 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 29 Jan 2007 21:18:00 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Michael Chen Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jan 29 22:17:59 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HBdsz-0001xy-09 for geh-help-gnu-emacs@m.gmane.org; Mon, 29 Jan 2007 22:17:57 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HBdsy-0006BA-9W for geh-help-gnu-emacs@m.gmane.org; Mon, 29 Jan 2007 16:17:56 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HBds6-0005yZ-Ei for help-gnu-emacs@gnu.org; Mon, 29 Jan 2007 16:17:02 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HBds4-0005xd-Ox for help-gnu-emacs@gnu.org; Mon, 29 Jan 2007 16:17:02 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HBds4-0005xW-Jy for help-gnu-emacs@gnu.org; Mon, 29 Jan 2007 16:17:00 -0500 Original-Received: from ch-smtp02.sth.basefarm.net ([80.76.149.213]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1HBds4-00079j-7k for help-gnu-emacs@gnu.org; Mon, 29 Jan 2007 16:17:00 -0500 Original-Received: from c83-254-145-24.bredband.comhem.se ([83.254.145.24]:60995 helo=[127.0.0.1]) by ch-smtp02.sth.basefarm.net with esmtp (Exim 4.63) (envelope-from ) id 1HBds0-0000bR-8G; Mon, 29 Jan 2007 22:16:58 +0100 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.9) Gecko/20061207 Thunderbird/1.5.0.9 Mnenhy/0.7.4.666 In-Reply-To: <71ab86070701291301q34ea49e8ked19710cad016517@mail.gmail.com> X-Antivirus: avast! (VPS 000708-1, 2007-01-29), Outbound message X-Antivirus-Status: Clean X-Scan-Result: No virus found in message 1HBds0-0000bR-8G. X-Scan-Signature: ch-smtp02.sth.basefarm.net 1HBds0-0000bR-8G da6bbb24ba062eb53128f75896e7788f X-detected-kernel: Linux 2.6? (barebone, rare!) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:40737 Archived-At: Michael Chen wrote: > Hi, there, I have problem with newlines in regexp. Here is what I want > to do: delete anything between
to TIP OF THE WEEK inclusively. > There are many lines in between. Any regex I tried can not go through > the newline. Any idea? Thanks. > > Michael Chen Maybe this helps: http://www.emacswiki.org/cgi-bin/wiki/SymbolicRegexp I have not looked at sregex myself, but I looked a bit at rx.el.