From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Mark Elston Newsgroups: gmane.emacs.help Subject: Re: how can I make regexp expression effective across many lines Date: Mon, 29 Jan 2007 15:00:27 -0800 Organization: Posted via Supernews, http://www.supernews.com Message-ID: <12rsuu6srag2j6b@corp.supernews.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 1170114042 1252 80.91.229.12 (29 Jan 2007 23:40:42 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 29 Jan 2007 23:40:42 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jan 30 00:40:34 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 1HBg6v-0007UQ-A1 for geh-help-gnu-emacs@m.gmane.org; Tue, 30 Jan 2007 00:40:29 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HBg6u-0008DK-Ri for geh-help-gnu-emacs@m.gmane.org; Mon, 29 Jan 2007 18:40:28 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!multikabel.net!feed20.multikabel.net!sn-xt-ams-06!sn-xt-ams-05!sn-post-ams-02!sn-post-sjc-01!supernews.com!corp.supernews.com!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Thunderbird 1.5.0.9 (Windows/20061207) In-Reply-To: Original-X-Complaints-To: abuse@supernews.com Original-Lines: 21 Original-Xref: shelby.stanford.edu gnu.emacs.help:145137 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:40743 Archived-At: * Lennart Borgman (gmail) wrote (on 1/29/2007 1:16 PM): > 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. > > You live and learn. I wish I had learned this *last* week! :) Mark