From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.devel Subject: Re: Ugly regexps Date: Tue, 2 Mar 2021 20:08:53 -0600 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38688"; mail-complaints-to="usenet@ciao.gmane.io" To: Stefan Monnier , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Mar 03 03:10:07 2021 Return-path: Envelope-to: ged-emacs-devel@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 1lHGxj-0009yF-Ac for ged-emacs-devel@m.gmane-mx.org; Wed, 03 Mar 2021 03:10:07 +0100 Original-Received: from localhost ([::1]:45552 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lHGxg-0005jO-Dw for ged-emacs-devel@m.gmane-mx.org; Tue, 02 Mar 2021 21:10:04 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55132) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lHGwb-0005FR-9f for emacs-devel@gnu.org; Tue, 02 Mar 2021 21:08:57 -0500 Original-Received: from mail-pj1-x102a.google.com ([2607:f8b0:4864:20::102a]:39664) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lHGwZ-0001IM-PK for emacs-devel@gnu.org; Tue, 02 Mar 2021 21:08:57 -0500 Original-Received: by mail-pj1-x102a.google.com with SMTP id d2so3351641pjs.4 for ; Tue, 02 Mar 2021 18:08:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:in-reply-to:references:mime-version:date:message-id:subject:to; bh=g/pS5lnA0x9tSCuCuXAfiIkyX2uAcZMpSmeaoN2aO/A=; b=XAvlvNEsV8t58Vmdrj9H5SRYkinGTw50+o1GEXF7c5wZ8JKNwSyB3mmF5g3MfR0qZ9 Brqi6zLEk3Vcl1/UU/UxgVSkMUDVn/4jt7GgwhzLAn5uAn2Xugxk5987Gbh+jnxBkv83 AkTb5MHXW7eNrrqjSgnj676DfhYjmWTvDPCasGwp09B6UFfxZCe/OsGAMKtg1F4phudO k2p116d5azrXqZIZnkzLmU5diy0hyVr0iS6cAmilnM4Q9/+Ycny4lTnzrLJ2yGAoDh6W sc3miYN6MH9W7aG/7e/4yZK290/CoMc5WQ3ajgYkuivA6bTonbtGplez17UBsEnJ3pAz eJUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:in-reply-to:references:mime-version:date :message-id:subject:to; bh=g/pS5lnA0x9tSCuCuXAfiIkyX2uAcZMpSmeaoN2aO/A=; b=tUlmFFD+75rvreN4M+wGYVpBVUolXorHM2jU+tmR+DCkTYQm+0o9wFOHjRBZ4MqPI6 5Kq+nLNEVLZ75Lz5J+g7zywdnMLYRkfQwvHtmr2cuIWffnVdrBU2ga1/os6o0dB5HOz2 fpP+L4pItXjj9H8JlHwaoiEqY0X7XqYuPG8BNLx8XR0zqBuDfNY85i2RbN9tHD/44BE9 5yR7Xw4vlXgNLn7RQZXUnccR2R0tO7pp5c3eg8BdBFm+6UvB5rUEWuovj+XnmGtVFlYj pz+Ry1i0AgIChM79pDikecseKepghQqlIDpM+3YSyZCZQz9jtJ3Uj573gDMoVJ6qYZJX u/+g== X-Gm-Message-State: AOAM532DxnBbLrxN4PnoEvLXaK+V9ujBqnGVeBL0FwN4KLiJ3WtBhR56 w1+bCUI2j+ZTWCxDJxIPOknetbkYLu4GmnQrbT8= X-Google-Smtp-Source: ABdhPJxDV3x8e0HTEIJK/kpr52kBOPGE/jbY7mGu/ZJJUrVs8yYy8B6G79T1d/TKbx2k14v9YouKCI5QjAMvrVx9VFo= X-Received: by 2002:a17:903:31c4:b029:e1:8840:8ab9 with SMTP id v4-20020a17090331c4b02900e188408ab9mr831351ple.70.1614737334337; Tue, 02 Mar 2021 18:08:54 -0800 (PST) Original-Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Tue, 2 Mar 2021 20:08:53 -0600 In-Reply-To: Received-SPF: pass client-ip=2607:f8b0:4864:20::102a; envelope-from=stefankangas@gmail.com; helo=mail-pj1-x102a.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:265854 Archived-At: Stefan Kangas writes: > While we're at it, has it ever been discussed to add support for the > pcre library side-by-side with our homegrown regexp.c? It would give us > sane (standard) syntax and some useful features "for free" > (e.g. lookaround). I didn't test but a priori I would also assume the > code to be much more performant than anything we could ever cook up > ourselves. It is used by several high-profile projects. Of course this had already been discussed. I found this interesting thread from 2012: https://lists.gnu.org/archive/html/emacs-devel/2012-01/msg00736.html Long story short, it may be a non-trivial job. In particular supporting the \s and \c operators seems like a hard nut to crack.