From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: modern regexes in emacs Date: Sun, 17 Feb 2019 19:38:22 -0500 Message-ID: References: <20180616123704.7123f6d7@jabberwock.cb.piermont.com> <87po0qs6re.fsf@gmail.com> <83r2c9m8yj.fsf@gnu.org> <17581DA9-7DCA-432E-A2E8-E5184DFA8B4B@acm.org> <20190215114728.0785e891@jabberwock.cb.piermont.com> <20190215175405.GA5438@ACM> <83lg2gnbky.fsf@gnu.org> <3D5EA6AB-F0DA-4B66-8592-A111C906B3AE@acm.org> <8736om2q92.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="201614"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Feb 18 01:39:46 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gvWyH-000qJM-6A for ged-emacs-devel@m.gmane.org; Mon, 18 Feb 2019 01:39:45 +0100 Original-Received: from localhost ([127.0.0.1]:48486 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gvWyG-00013L-5Q for ged-emacs-devel@m.gmane.org; Sun, 17 Feb 2019 19:39:44 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:55714) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gvWxJ-00011S-Q9 for emacs-devel@gnu.org; Sun, 17 Feb 2019 19:38:46 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gvWxI-0005Jv-4R for emacs-devel@gnu.org; Sun, 17 Feb 2019 19:38:45 -0500 Original-Received: from [195.159.176.226] (port=37936 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gvWxG-0005FF-Ba for emacs-devel@gnu.org; Sun, 17 Feb 2019 19:38:44 -0500 Original-Received: from list by blaine.gmane.org with local (Exim 4.89) (envelope-from ) id 1gvWx4-000p4i-0t for emacs-devel@gnu.org; Mon, 18 Feb 2019 01:38:30 +0100 X-Injected-Via-Gmane: http://gmane.org/ Cancel-Lock: sha1:qJTa5lAi7KhpvWSm4iUznFqlZ4E= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 195.159.176.226 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:233438 Archived-At: > This would be really trivial to do when we'll have a function that > will convert an extended regexp string into rx form like what > the xr package does, i.e. like the function ‘xr’, a new function > ‘exr’ could convert an extended regexp - as opposed to basic regexp > as noted in https://www.regular-expressions.info/gnu.html FWIW, lex.el's lex-parse-re supports both ERE and BRE syntaxes. It's more a "proof of concept" for lex.el so it's currently not as thorough as xr.el is. Stefan