From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.help Subject: Re: does emacs regular expression support (?!expression) Date: Thu, 02 Feb 2012 19:56:51 +0100 Message-ID: <8739at5aj0.fsf@thinkpad.tsdh.de> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: dough.gmane.org 1328209042 25150 80.91.229.3 (2 Feb 2012 18:57:22 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 2 Feb 2012 18:57: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 19:57:21 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 1Rt1qQ-0005XA-30 for geh-help-gnu-emacs@m.gmane.org; Thu, 02 Feb 2012 19:57:18 +0100 Original-Received: from localhost ([::1]:60108 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rt1qP-0004vQ-Ml for geh-help-gnu-emacs@m.gmane.org; Thu, 02 Feb 2012 13:57:17 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:49269) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rt1qG-0004vG-Dj for help-gnu-emacs@gnu.org; Thu, 02 Feb 2012 13:57:13 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rt1qC-0004C1-Le for help-gnu-emacs@gnu.org; Thu, 02 Feb 2012 13:57:08 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:49296) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rt1qC-0004Bs-8L for help-gnu-emacs@gnu.org; Thu, 02 Feb 2012 13:57:04 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Rt1qA-0005MZ-JG for help-gnu-emacs@gnu.org; Thu, 02 Feb 2012 19:57:02 +0100 Original-Received: from 91-67-11-43-dynip.superkabel.de ([91.67.11.43]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 02 Feb 2012 19:57:02 +0100 Original-Received: from tassilo by 91-67-11-43-dynip.superkabel.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 02 Feb 2012 19:57:02 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 15 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 91-67-11-43-dynip.superkabel.de User-Agent: Gnus/5.130002 (Ma Gnus v0.2) Emacs/24.0.93 (gnu/linux) Cancel-Lock: sha1:7QuxAwjqkJ1O0A5uqxl54oJ9D+A= 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:83586 Archived-At: εœŸζ˜ŸδΊ”ε· writes: > 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. Bye, Tassilo