From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tim Landscheidt Newsgroups: gmane.emacs.help Subject: Re: does emacs regular expression support (?!expression) Date: Thu, 02 Feb 2012 21:14:40 +0000 Organization: Message-ID: References: <8739at5aj0.fsf@thinkpad.tsdh.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1328217322 23415 80.91.229.3 (2 Feb 2012 21:15:22 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 2 Feb 2012 21:15:22 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Feb 02 22:15:22 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Rt3zw-0003mf-8D for geh-help-gnu-emacs@m.gmane.org; Thu, 02 Feb 2012 22:15:18 +0100 Original-Received: from localhost ([::1]:56674 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rt3zv-0003w3-HF for geh-help-gnu-emacs@m.gmane.org; Thu, 02 Feb 2012 16:15:15 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:47672) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rt3zm-0003mu-1n for help-gnu-emacs@gnu.org; Thu, 02 Feb 2012 16:15:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rt3zi-0000Zu-CL for help-gnu-emacs@gnu.org; Thu, 02 Feb 2012 16:15:05 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:60594) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rt3zi-0000ZM-1F for help-gnu-emacs@gnu.org; Thu, 02 Feb 2012 16:15:02 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Rt3zd-0003dJ-Tv for help-gnu-emacs@gnu.org; Thu, 02 Feb 2012 22:14:57 +0100 Original-Received: from g224047097.adsl.alicedsl.de ([92.224.47.97]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 02 Feb 2012 22:14:57 +0100 Original-Received: from tim by g224047097.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 02 Feb 2012 22:14:57 +0100 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: help-gnu-emacs@gnu.org Original-Lines: 17 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: g224047097.adsl.alicedsl.de Mail-Copies-To: never User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Cancel-Lock: sha1:yMNOZuEaYuUGA3qsipYKFb00NIE= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:83588 Archived-At: Tassilo Horn wrote: >> does emacs regular expression support (?!expression) ? > It would be more helpful if you'd tell us what (?!expression) would > match, preferably with some examples. Syntactically, emacs regexp's shy > groups look similar. The regular expression > "\\(:?foo\\|bar\\)\\([0-9]+\\)" > matches "foo19" or "bar23", but doesn't capture foo or bar, so that > (match-string 1) is the number. In Perl, "(?!pattern)" is a zero-width negative look-ahead assertion. Emacs does not support these AFAIK. Tim