From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Douglas Lewan Newsgroups: gmane.emacs.help Subject: Regular expression grouping not working? Date: Sat, 8 Feb 2020 14:17:54 -0500 Message-ID: <02a28c91-d67d-e76a-c2a7-41b82d6b023f@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="60325"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 To: help-gnu-emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sat Feb 08 20:18:24 2020 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1j0VcW-000Fbh-2Z for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 08 Feb 2020 20:18:24 +0100 Original-Received: from localhost ([::1]:44644 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j0VcV-00070j-4u for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 08 Feb 2020 14:18:23 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49900) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j0VcA-00070M-Mf for help-gnu-emacs@gnu.org; Sat, 08 Feb 2020 14:18:03 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j0Vc9-0007a3-MB for help-gnu-emacs@gnu.org; Sat, 08 Feb 2020 14:18:02 -0500 Original-Received: from mail-qk1-x735.google.com ([2607:f8b0:4864:20::735]:40963) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j0Vc9-0007Zl-IM for help-gnu-emacs@gnu.org; Sat, 08 Feb 2020 14:18:01 -0500 Original-Received: by mail-qk1-x735.google.com with SMTP id d11so2595989qko.8 for ; Sat, 08 Feb 2020 11:18:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=to:from:subject:message-id:date:user-agent:mime-version :content-transfer-encoding:content-language; bh=8O43MRi0tnAXfu5dshcZ50CuY3LOnI2rfCoq4KYgRj4=; b=fCyWx34XOY8gqS6ZewT3efMLa+mqNBCU5pWO0eQkyebSzR8QUxmo1nRsYH5Rinp3Mq SnKW10jecYS98kQ/D8gIf6dLg2/qGOyo8ixEgDii1e7ZDp0bRZ7WT9Ok8t+GD/BudaGw cLEtGsh7U4Ie2/JLnAZbO53xUyw4SDZlYc9qrJSmWy54V4xSM1++XKDZqGTQKY1whprb R9ZAJkmA69wpKjY5tFf/9weTf73zpJoanuqCd11EK0Ju5t2dgphKT3x123HpZ7E5jhUS +P5rCkItvSdN1zhWmf2shHcpAsIQVfYsHltO7geKcRmtl1kzKfoeJtKc65dLKo0cxwmr TBuA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version:content-transfer-encoding:content-language; bh=8O43MRi0tnAXfu5dshcZ50CuY3LOnI2rfCoq4KYgRj4=; b=g2VNHmVk4J61/SMWfOtipcsWsC8RVBgudsxLU5eLt82Ga3XTecJDP4Z4e/ZIQkpL6W wYTCjdDqhlm6Kcb97QaC9tFYpKno2L6eLRcA54mZT5NRmPm96Ek/5I7v/vasOET6FtVK cJyR7ww7a8pfP3QLz0ocT3XVLt2/iLVTb1acn5yk6skQlhDLTx6jLwwISu+1FiLCM3Gd ydWE1mDZ/ttvBiZzHPqpTTC9OHyGkTg+/EZuxT4AjcrmuuQ62sxg80Tsi52wzPn8FwrS +2AvN0IFCGS/JpU0psxS0JPXFTlRKlJXg+uADuaBLLxilTxcDRLnPFnyZVUADbv0F6Qs SCkQ== X-Gm-Message-State: APjAAAV0czlCjdPYT1T9g9GKvkWfkgeS3hjErsd9Oogidq4oEPB8r/hk 6kPyhDJQAXl1IyNtT7wDqJG5acY= X-Google-Smtp-Source: APXvYqxT/2e7sTJB8srnh97NHyX1ff4t9ljU+vZLcDmvJowK73zOw6cl/sUQwNq6Zj9G6WvDu/8sPw== X-Received: by 2002:a05:620a:b89:: with SMTP id k9mr4414250qkh.185.1581189480562; Sat, 08 Feb 2020 11:18:00 -0800 (PST) Original-Received: from [0.0.0.0] ([23.129.64.210]) by smtp.gmail.com with ESMTPSA id j58sm3422448qtk.27.2020.02.08.11.17.58 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 08 Feb 2020 11:18:00 -0800 (PST) Content-Language: en-US X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::735 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 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-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:122378 Archived-At: I'm writing some code that includes the regular expression \\([^/]+/\\), (looking for a path on GNU/Linux) which doesn't match what I expect it should. On the other hand, the regular expression [^/]+/, exactly the regular expression within the first, does match. That seems wrong somehow. Is there something I'm missing? -- ,Doug d.lewan2000@gmail.com (908) 720 7908 Isn't there a difference between "acquittal" and "exoneration"?