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: RegExp: match everything except a certain string Date: Tue, 20 Nov 2007 17:08:35 +0100 Message-ID: <87fxz0j3wc.fsf@kamaloka.dhatu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1543667591==" X-Trace: ger.gmane.org 1195574963 3488 80.91.229.12 (20 Nov 2007 16:09:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 20 Nov 2007 16:09:23 +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 17:09:30 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 1IuVfB-00039A-Do for geh-help-gnu-emacs@m.gmane.org; Tue, 20 Nov 2007 17:09:25 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IuVex-0002LE-JR for geh-help-gnu-emacs@m.gmane.org; Tue, 20 Nov 2007 11:09:11 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IuVee-0002Gd-0x for help-gnu-emacs@gnu.org; Tue, 20 Nov 2007 11:08:52 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IuVea-0002AL-J5 for help-gnu-emacs@gnu.org; Tue, 20 Nov 2007 11:08:51 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IuVea-0002A8-Do for help-gnu-emacs@gnu.org; Tue, 20 Nov 2007 11:08:48 -0500 Original-Received: from viefep18-int.chello.at ([213.46.255.22] helo=viefep23-int.chello.at) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IuVeZ-0001Dn-Rb for help-gnu-emacs@gnu.org; Tue, 20 Nov 2007 11:08:48 -0500 Original-Received: from kamaloka.dhatu ([80.219.162.86]) by viefep23-int.chello.at (InterMail vM.7.08.02.00 201-2186-121-20061213) with ESMTP id <20071120160844.CUAH5696.viefep23-int.chello.at@kamaloka.dhatu> for ; Tue, 20 Nov 2007 17:08:44 +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:49360 Archived-At: --===============1543667591== Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" --=-=-= Hello to all A RegExp beginner's question again. I cannot find a way to search for a regexp that matches everything except of one certain string. The problem is: author = {somename}, editor = {}, title = {sometitle}, subtitle = {}, series = {}, url = {} I want to find a regexp that matches every line with empty {} except of the "subtitle line". I've come that far: ^ \<[^s].* = {},* But this one also excludes the "series line", of course. I was thinking of \<[^s][^u] but this doesn't work, since, then, the initial s of "subtitle" is matched again. What is the syntax for find .* except of the string "subtitle"? I didn't recognize this in the Lisp info. Thanks for help Sven --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFHQwaIV5JTHLAduAYRAmCfAJ9wecmtjKsVpWYXd9kp/5t+5inrkQCdGGIX bWtyt4QFIjb/uDDYDiNjjoc= =Nep4 -----END PGP SIGNATURE----- --=-=-=-- --===============1543667591== 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 --===============1543667591==--