From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Sven Bretfeld Newsgroups: gmane.emacs.help Subject: Re: RegExp: match everything except a certain string Date: Tue, 20 Nov 2007 22:31:27 +0100 Message-ID: <87fxz07geo.fsf@kamaloka.dhatu> References: <87fxz0j3wc.fsf@kamaloka.dhatu> <200711201850.02854.andreas.roehler@online.de> <87wssc7iz3.fsf@kamaloka.dhatu> <47434C26.1090208@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1563086372==" X-Trace: ger.gmane.org 1195594329 12784 80.91.229.12 (20 Nov 2007 21:32:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 20 Nov 2007 21:32:09 +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 Nov 20 22:32:14 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 1Iuaha-0003hk-6K for geh-help-gnu-emacs@m.gmane.org; Tue, 20 Nov 2007 22:32:14 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IuahM-0006LC-Cr for geh-help-gnu-emacs@m.gmane.org; Tue, 20 Nov 2007 16:32:00 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Iuah4-0006Hq-KI for help-gnu-emacs@gnu.org; Tue, 20 Nov 2007 16:31:42 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Iuah0-0006Br-Vd for help-gnu-emacs@gnu.org; Tue, 20 Nov 2007 16:31:42 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Iuah0-0006Bj-MO for help-gnu-emacs@gnu.org; Tue, 20 Nov 2007 16:31:38 -0500 Original-Received: from viefep27-int.chello.at ([62.179.121.47]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Iuah0-0007Vj-2y for help-gnu-emacs@gnu.org; Tue, 20 Nov 2007 16:31:38 -0500 Original-Received: from kamaloka.dhatu ([80.219.162.86]) by viefep27-int.chello.at (InterMail vM.7.08.02.02 201-2186-121-104-20070414) with ESMTP id <20071120213136.ZGXR9364.viefep27-int.chello.at@kamaloka.dhatu> for ; Tue, 20 Nov 2007 22:31:36 +0100 In-Reply-To: <47434C26.1090208@gmail.com> (Lennart Borgman's message of "Tue, 20 Nov 2007 22:05:42 +0100") User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.1.50 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Solaris 10 (beta) 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:49376 Archived-At: --===============1563086372== Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" --=-=-= Hi Lennart "Lennart Borgman (gmail)" writes: >> It's a good idea to use a sed pipe. But it doesn't matter how much >> there is to type, since I need the expression for a function. So I >> only have to type it once. > > Then it is probably much easier to use two step aproach: > > 1) use a simpler regexp > 2) test if "subtitle" was in the match This is going to be my first function ever. I will try if I can do it that way. Thanks Sven --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFHQ1IzV5JTHLAduAYRAh/BAJsGAe1svJsiB60lPGBx8pRBJfC0DACbB1sP 0RhCx/7D6LLjOcsk0Fj7gsw= =D0h3 -----END PGP SIGNATURE----- --=-=-=-- --===============1563086372== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ help-gnu-emacs mailing list help-gnu-emacs@gnu.org http://lists.gnu.org/mailman/listinfo/help-gnu-emacs --===============1563086372==--