From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: =?utf-8?B?Sm/Do28gVMOhdm9yYQ==?= Newsgroups: gmane.emacs.devel Subject: Re: rx.el sexp regexp syntax Date: Thu, 31 May 2018 19:40:40 +0100 Message-ID: <87y3fzact3.fsf@gmail.com> References: <87h8mw3yoc.fsf@gmail.com> <20180525155126.GA4096@ACM> <87lgc7hebk.fsf@gmail.com> <87r2lzd375.fsf@ericabrahamsen.net> <8736ybpwhh.fsf@gmail.com> <87y3g1a9kv.fsf@gmail.com> <877enjby8h.fsf@gmail.com> <87lgbzvlx9.fsf@gmail.com> <87wovjepp6.fsf@tcd.ie> <87po1bep2s.fsf@tcd.ie> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1527791965 612 195.159.176.226 (31 May 2018 18:39:25 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 31 May 2018 18:39:25 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: "Basil L. Contovounesios" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu May 31 20:39:20 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fOSTo-0008To-N0 for ged-emacs-devel@m.gmane.org; Thu, 31 May 2018 20:39:20 +0200 Original-Received: from localhost ([::1]:45662 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fOSVt-0000x1-W5 for ged-emacs-devel@m.gmane.org; Thu, 31 May 2018 14:41:30 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51463) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fOSVF-0000wi-7d for emacs-devel@gnu.org; Thu, 31 May 2018 14:40:50 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fOSVC-00013H-51 for emacs-devel@gnu.org; Thu, 31 May 2018 14:40:49 -0400 Original-Received: from mail-wm0-x234.google.com ([2a00:1450:400c:c09::234]:34326) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fOSVB-00012D-UQ for emacs-devel@gnu.org; Thu, 31 May 2018 14:40:46 -0400 Original-Received: by mail-wm0-x234.google.com with SMTP id q4-v6so3781934wmq.1 for ; Thu, 31 May 2018 11:40:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=rv7WvTOFu4PIEaCOchjo3+D4yEsCBLtiaz8v9RjO/Fs=; b=oivu1kH1dbWHjPbChr7C7SeSDh1i/Hf8I+oo3C2pOTSTZYGl9KnHz1WSphf8vhGlI9 K3T9y1GpQ9wfeXsfWQLrQzRmc33NCByvnEGQMpMrdYS2Y2DcDuLbQ56/NA9B+mSTpjn0 riIAAMKPKsL8zEz8ZMBkyQ99+d51+MctJbiUaY3OvzvDWEbM6ABYn3qUbBvrJKxVmV5t IvfcU0+8DBGIVbFs5m8V0Z3FGGhPjipHHYrUhz5USeCQOFugJ/F6Too+H67Zv/91vgS4 Ba1VcTJdUgXSw9cZ2MktqmpQ7xP8PiItf54Cjpzud1W/XAYBX/7Z1OmveZxZDHzY0Sjn e1UQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=rv7WvTOFu4PIEaCOchjo3+D4yEsCBLtiaz8v9RjO/Fs=; b=UWEwEAENmRoif0HE5hNlYyC92/MCoMVKM6D0nJU5O8uLFPhfqCX6N/vHvs2yQWji0N qCVxWooTWXgAs9zeUwOtl2YtNIMyifBtmch88mFKblZS0JoKnWCb2fhqAog/l4bfTm7D E9EW87MoRWFcBHr3y/ygcKd6po3N0x9xkCIG7D0Cn7IxCcoL1lPgP+tt+qsnTVUw5f2z OptuhCyuBRI1PUO3NaW3NwlhpSIsuaJQHSCPNjKjD44+oQ/9mdMOnNVgPc1N4f4A9vrw gL9379A/bL1SAq8hL/PmNJQu2GpPhGoKb7x5hpCqyGeAGK7mcU7WkDurKasNL6YqreBy Ke/w== X-Gm-Message-State: APt69E1O3NxdP+yV9hZWnAZ1TWno9KpkTqroVckvQkHfC7O+5fdFZ5hB bPgWv5poP06hGtsn1IUvE6afXrw6 X-Google-Smtp-Source: ADUXVKLhehxfUv+CVHSpdmqD4th7vrs9KOrLbwZZUwcwnHjlYT3tC3l9BwIOi2P09g7Kal2AEChVFg== X-Received: by 2002:a1c:96d3:: with SMTP id y202-v6mr644725wmd.76.1527792044568; Thu, 31 May 2018 11:40:44 -0700 (PDT) Original-Received: from lolita.yourcompany.com (188.139.62.94.rev.vodafone.pt. [94.62.139.188]) by smtp.gmail.com with ESMTPSA id v15-v6sm45637wmf.47.2018.05.31.11.40.43 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 31 May 2018 11:40:43 -0700 (PDT) In-Reply-To: <87po1bep2s.fsf@tcd.ie> (Basil L. Contovounesios's message of "Thu, 31 May 2018 18:02:03 +0100") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c09::234 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:225869 Archived-At: "Basil L. Contovounesios" writes: > "Basil L. Contovounesios" writes: > >> Robert Pluim writes: >> >>> Jo=C3=A3o T=C3=A1vora writes: >>> >>>> Drew Adams writes: >>>> >>>>> Given such functions, I might use RX and the show-me-the-regexp >>>>> function to create a regexp string, which I'd leave in the code, >>>>> and I might use the show-me-the-RX function when I need to change >>>>> such a string (or think about it). >>>> >>>> +1, FWIW. But are there such functions? >>> >>> rx->regexp obviously exists, but I=CA=BCm not aware of the reverse. >> >> At first glance, lex-parse-re from lex.el seems to fill the role, though > ^^^^^^ > I meant lex-parse-re.el, which is part of the lex package on ELPA. And, notably, https://github.com/joddie/pcre2el looks pretty good too. Jo=C3=A3o