From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.bugs Subject: bug#41006: 26.3; regular expressions documentation Date: Wed, 06 May 2020 22:42:38 -0400 Message-ID: References: <64E29F93-5A92-4F8D-9BA2-C6F14AEC2F64@acm.org> <6F7830C9-FED5-4CE4-AAA3-45BFA0638F58@acm.org> Reply-To: rms@gnu.org Content-Type: text/plain; charset=Utf-8 Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="77146"; mail-complaints-to="usenet@ciao.gmane.io" Cc: rtm443x@googlemail.com, stefan@marxist.se, 41006@debbugs.gnu.org To: Mattias =?UTF-8?Q?Engdeg=C3=83=C2=A5rd?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu May 07 04:43:11 2020 Return-path: Envelope-to: geb-bug-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 1jWWVD-000JzB-38 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 07 May 2020 04:43:11 +0200 Original-Received: from localhost ([::1]:37958 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jWWVC-0007ge-4X for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 06 May 2020 22:43:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60040) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jWWV4-0007gQ-Mu for bug-gnu-emacs@gnu.org; Wed, 06 May 2020 22:43:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:58366) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jWWV4-0005FD-Dx for bug-gnu-emacs@gnu.org; Wed, 06 May 2020 22:43:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jWWV4-0006LB-CH for bug-gnu-emacs@gnu.org; Wed, 06 May 2020 22:43:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Richard Stallman Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 07 May 2020 02:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41006 X-GNU-PR-Package: emacs Original-Received: via spool by 41006-submit@debbugs.gnu.org id=B41006.158881936824343 (code B ref 41006); Thu, 07 May 2020 02:43:02 +0000 Original-Received: (at 41006) by debbugs.gnu.org; 7 May 2020 02:42:48 +0000 Original-Received: from localhost ([127.0.0.1]:41678 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jWWUq-0006KZ-0W for submit@debbugs.gnu.org; Wed, 06 May 2020 22:42:48 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:56950) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jWWUo-0006KM-HT for 41006@debbugs.gnu.org; Wed, 06 May 2020 22:42:46 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:41787) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jWWUj-0004jK-7I; Wed, 06 May 2020 22:42:41 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1jWWUg-0002Bh-OO; Wed, 06 May 2020 22:42:39 -0400 In-Reply-To: <6F7830C9-FED5-4CE4-AAA3-45BFA0638F58@acm.org> (message from Mattias =?UTF-8?Q?Engdeg=C3=83=C2=A5rd?= on Tue, 5 May 2020 19:12:50 +0200) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:179858 Archived-At: [[[ To any NSA and FBI agents reading my email: please consider ]]] [[[ whether defending the US Constitution against all enemies, ]]] [[[ foreign or domestic, requires you to follow Snowden's example. ]]] > * concatenation and alternative > * repetition: * + ? etc > * bracketing: \(?: ... \) > * single-character expressions: [...] '.' \cX etc > * zero-width assertions: ^ $ \< etc > * capture groups and backrefs That list could be a starting point. (What is a "capture group"? I have no idea.) However, I don't think alternatives are very useful without brackets, so brackets should come before alternatives. I think single-character expressions should come before repetition, because the former are more basic and conceptually simpler. -- Dr Richard Stallman Chief GNUisance of the GNU Project (https://gnu.org) Founder, Free Software Foundation (https://fsf.org) Internet Hall-of-Famer (https://internethalloffame.org)