From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: =?UTF-8?Q?G=C3=B6ktu=C4=9F?= Kayaalp Newsgroups: gmane.emacs.help Subject: Re: Regular expression grouping not working? Date: Mon, 17 Feb 2020 00:15:11 -0000 (UTC) Message-ID: References: <02a28c91-d67d-e76a-c2a7-41b82d6b023f@gmail.com> <871rr4op14.fsf@iki.fi> <839ed1f6-9c0e-f6c7-082b-8398c5861de9@gmail.com> Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="20499"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: slrn/1.0.3 (Linux) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Feb 17 01:17:00 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 1j3U5r-0005Cp-SX for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 17 Feb 2020 01:16:59 +0100 Original-Received: from localhost ([::1]:38208 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j3U5q-0003hk-UM for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 16 Feb 2020 19:16:58 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59658) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j3U4F-0002PE-1x for help-gnu-emacs@gnu.org; Sun, 16 Feb 2020 19:15:19 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j3U4E-0003xc-6m for help-gnu-emacs@gnu.org; Sun, 16 Feb 2020 19:15:18 -0500 Original-Received: from ciao.gmane.io ([159.69.161.202]:58466) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1j3U4E-0003w3-14 for help-gnu-emacs@gnu.org; Sun, 16 Feb 2020 19:15:18 -0500 Original-Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1j3U4C-0003TV-8G for help-gnu-emacs@gnu.org; Mon, 17 Feb 2020 01:15:16 +0100 X-Injected-Via-Gmane: http://gmane.org/ X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 159.69.161.202 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:122409 Archived-At: FWIW, you might want to try rx for your regular expressions. It generates regexes from a readable sexp syntax, and is included in Emacs proper. It's way easier to modify and reason. See "(elisp) Rx Notation".