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 21:36:00 +0100 Message-ID: <87wssc7iz3.fsf@kamaloka.dhatu> References: <87fxz0j3wc.fsf@kamaloka.dhatu> <200711201850.02854.andreas.roehler@online.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2142385797==" X-Trace: ger.gmane.org 1195591084 635 80.91.229.12 (20 Nov 2007 20:38:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 20 Nov 2007 20:38:04 +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 21:38:09 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 1IuZr3-0006iB-Pf for geh-help-gnu-emacs@m.gmane.org; Tue, 20 Nov 2007 21:38:01 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IuZqN-0002Ft-0k for geh-help-gnu-emacs@m.gmane.org; Tue, 20 Nov 2007 15:37:15 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IuZpb-0001ZP-PW for help-gnu-emacs@gnu.org; Tue, 20 Nov 2007 15:36:27 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IuZpW-0001Rc-Jx for help-gnu-emacs@gnu.org; Tue, 20 Nov 2007 15:36:27 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IuZpW-0001R7-9S for help-gnu-emacs@gnu.org; Tue, 20 Nov 2007 15:36:22 -0500 Original-Received: from viefep28-int.chello.at ([62.179.121.48]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IuZpU-00016Z-PT for help-gnu-emacs@gnu.org; Tue, 20 Nov 2007 15:36:22 -0500 Original-Received: from kamaloka.dhatu ([80.219.162.86]) by viefep28-int.chello.at (InterMail vM.7.08.02.02 201-2186-121-104-20070414) with ESMTP id <20071120203609.UZQI9569.viefep28-int.chello.at@kamaloka.dhatu> for ; Tue, 20 Nov 2007 21:36:09 +0100 In-Reply-To: <200711201850.02854.andreas.roehler@online.de> (Andreas =?utf-8?Q?R=C3=B6hler's?= message of "Tue, 20 Nov 2007 18:50:02 +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:49373 Archived-At: --===============2142385797== Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hello Andreas Andreas R=C3=B6hler writes: >> author =3D {somename}, >> editor =3D {}, >> title =3D {sometitle}, >> subtitle =3D {}, >> series =3D {}, >> url =3D {} >> >> I want to find a regexp that matches every line with empty {} except >> of the "subtitle line". I've come that far: >> > Got it with: > > [^s]?[^u]?[^b]?[^t]?[^i]?[^t]?[^l]?[^e] =3D {},?$ > > Please don't ask why :) That's working. Thanks. (I don't ask.) > Anyway--you will know that and it's not the precise > answer-- it might be useful to point at > > M-x shell-command-on-region > > grep {} | sed /subtitle/d > > as an easy-to-use solution. 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. Greetings Sven --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFHQ0U0V5JTHLAduAYRAvKAAJ0eO0JyodtqzIDXA7hmP1vRm0oD8QCgyIO4 AQWNI+K38ir92rsGkpo6Ylo= =j8E3 -----END PGP SIGNATURE----- --=-=-=-- --===============2142385797== 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 --===============2142385797==--