From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Teemu Likonen Newsgroups: gmane.emacs.help Subject: Re: Regular expression grouping not working? Date: Sat, 08 Feb 2020 21:30:15 +0200 Message-ID: <871rr4op14.fsf@iki.fi> References: <02a28c91-d67d-e76a-c2a7-41b82d6b023f@gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="114882"; mail-complaints-to="usenet@ciao.gmane.io" To: Douglas Lewan , help-gnu-emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sat Feb 08 20:32:02 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 1j0Vpi-000Tlg-Cb for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 08 Feb 2020 20:32:02 +0100 Original-Received: from localhost ([::1]:44740 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j0Vph-0004fe-8J for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 08 Feb 2020 14:32:01 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52487) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j0VoH-0004fR-Nc for help-gnu-emacs@gnu.org; Sat, 08 Feb 2020 14:30:37 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j0VoF-0000WG-Rg for help-gnu-emacs@gnu.org; Sat, 08 Feb 2020 14:30:32 -0500 Original-Received: from mail.kapsi.fi ([2001:67c:1be8::25]:44481) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1j0VoF-0000Hq-Ah for help-gnu-emacs@gnu.org; Sat, 08 Feb 2020 14:30:31 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=kapsi.fi; s=20161220; h=Content-Type:MIME-Version:Message-ID:Date:References: In-Reply-To:Subject:To:From:Sender:Reply-To:Cc:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=pgbivYKTHwivH1AbkoGUbxFIBLzrrra7QQRMipNZHVs=; b=lqY8LZgscmyiw3m8F5LF1c2rmQ B9oRZb9duutOJSRwkjhbeC85DO01zfsOjvb2N2ZxxhXuuCW+0l4UwGBchHdMgGGB5a0mFObSHtFbY QS0DfwCR1XlKqY7bl2/sCVDJRCb3FGh/B2xmDieEDZQeDNC/AvoF3Qa5A54A183aQgA1Haq8PK6c7 Nql7lqUQ+ywacH5P4onp1nrv6e1qWCxAcb1R3wUxUEsD06pFd2Qj5UIEmTJp4/yqPhkjRDv5r1QqT Mtp0+Nc030UShjCCpv1AKLIlOGPKBlTmRq3ZITfBpmyujQklADbTJUSAOchV7c6tZtQEwJAjYMP+o WfQ1AEPQ==; Original-Received: from mobile-access-6df066-105.dhcp.inet.fi ([109.240.102.105] helo=mithlond) by mail.kapsi.fi with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1j0Vo8-0000wT-QX; Sat, 08 Feb 2020 21:30:24 +0200 In-Reply-To: <02a28c91-d67d-e76a-c2a7-41b82d6b023f@gmail.com> X-SA-Exim-Connect-IP: 109.240.102.105 X-SA-Exim-Mail-From: tlikonen@iki.fi X-SA-Exim-Scanned: No (on mail.kapsi.fi); SAEximRunCond expanded to false X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2001:67c:1be8::25 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:122379 Archived-At: --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Douglas Lewan [2020-02-08T14:17:54-05] wrote: > I'm writing some code that includes the regular expression \\([^/]+/\\),= =20 > (looking for a path on GNU/Linux) which doesn't match what I expect it=20 > should. Maybe your backslash escaping is wrong. In regular expressions the grouping is made with \( \) but within Lisp strings backslash has a special meaning too and those must be escaped "\\( \\)". > Is there something I'm missing? I think we need more information about your code and input data. =2D-=20 /// OpenPGP key: 4E1055DC84E9DFF613D78557719D69D324539450 // https://keys.openpgp.org/search?q=3Dtlikonen@iki.fi / https://keybase.io/tlikonen https://github.com/tlikonen --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQFEBAEBCgAuFiEEkhZiiC54Bnj5a16Skzo1BB5+rVEFAl4/DEcQHHRsaWtvbmVu QGlraS5maQAKCRCTOjUEHn6tUVuoCACMobCKTez8aPQOmCr5CCScqoax/zmtUhys He5ISz4RAaDaWq86oMlTRK2MS6+FupbfC1bI4GeFDBBQcO3qlYWsceaJL2/plhDW NSdaKK8EwiVaAuZt2BOmemWn/dZ0pTaEi0K+qB1jQwTjmokDwEHVGrjanXgXPRSp jzZ5clBUkL08C8SPRu7fUMp9dv6tPJEyewHTEQJInn3p/1ZTySyKz6LzZYj8yuHQ DAbsGbb1P2yRDQ2oAJzLZ2sM7w4i4EEC6j2wzybSzvfNvu+MNmg99eAz93CMY/JP xzRDDn3RUAdn7tLWvUwX0p7BFar+1/sPCMe5JBIc4ydOOfA0ZYf3iIYEARYIAC4W IQTJW2wqtelxC1gHdbitnXWr7pTCcwUCXj8MTxAcdGxpa29uZW5AaWtpLmZpAAoJ EK2ddavulMJzpNQA/jE6u7Ihs13zu9Z2Jzm8wu+f1fqgHSrX9TjWxvJogmwoAP9T T3Atrs+b/bJXoJ+5xUbPvJt3P1LJn/faAjyOrr8hAA== =nVKH -----END PGP SIGNATURE----- --=-=-=--