From unknown Sat Jun 21 03:18:33 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#49887 <49887@debbugs.gnu.org> To: bug#49887 <49887@debbugs.gnu.org> Subject: Status: [Feature request] Lookaround assertions in Elisp regexps Reply-To: bug#49887 <49887@debbugs.gnu.org> Date: Sat, 21 Jun 2025 10:18:33 +0000 retitle 49887 [Feature request] Lookaround assertions in Elisp regexps reassign 49887 emacs submitter 49887 Brian Leung severity 49887 wishlist thanks From debbugs-submit-bounces@debbugs.gnu.org Wed Aug 04 21:57:05 2021 Received: (at submit) by debbugs.gnu.org; 5 Aug 2021 01:57:05 +0000 Received: from localhost ([127.0.0.1]:45479 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mBSd7-0000k6-62 for submit@debbugs.gnu.org; Wed, 04 Aug 2021 21:57:05 -0400 Received: from lists.gnu.org ([209.51.188.17]:41394) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mBSd4-0000jx-V0 for submit@debbugs.gnu.org; Wed, 04 Aug 2021 21:57:03 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40036) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mBSd4-0006un-Jf for bug-gnu-emacs@gnu.org; Wed, 04 Aug 2021 21:57:02 -0400 Received: from wilbur.contactoffice.com ([212.3.242.68]:33936) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mBSd2-0005NF-K8 for bug-gnu-emacs@gnu.org; Wed, 04 Aug 2021 21:57:02 -0400 Received: from ichabod.co-bxl (ichabod.co-bxl [10.2.0.36]) by wilbur.contactoffice.com (Postfix) with ESMTP id C26CC2E75 for ; Thu, 5 Aug 2021 03:56:55 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1628128615; s=20210208-e7xh; d=mailfence.com; i=leungbk@mailfence.com; h=Date:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:Reply-To:From; l=506; bh=bD2h+SOi1uHZnSsj5iZynwSHOFp2W9vrm2Ol7Iv8hQs=; b=wP5i3n4A9EaiYTxGNqY9XR+yvXzyRF2ZugjvLHI6b+jp+k/ZewQObKARV6P+XsP+ s8noFvSeewqWQfbUf9mX5VM2fN1ywN1hjrGPoeBvC1AVi4l5jSolqThvApyOsI4X7mZ Q29I14MSBdWdl8evIbHf1d30bGsZcDDZ70Yt7JT+2GYHxn8knrfypzuMwpqB5jB1MrZ C2ALuOmLCZeOUNELGRGKLFoa9fP8MlN1djUKMVVba2RKkFt7zFaGv//HkxAfZyuOjm8 PLbFAA39WJiMjOV7VYwkmeolDsQRzn6rnMeAvJce996Ye6lWmBIsMyFaJ1WHBnkZ9+B sq0tHVhKbQ== Date: Thu, 5 Aug 2021 03:56:51 +0200 (CEST) Message-ID: <733439345.608750.1628128611179@ichabod.co-bxl> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable To: Bug Gnu Emacs Subject: [Feature request] Lookaround assertions in Elisp regexps X-Priority: 3 From: Brian Leung X-Mailer: ContactOffice Mail X-ContactOffice-Account: com:225491745 Received-SPF: pass client-ip=212.3.242.68; envelope-from=leungbk@mailfence.com; helo=wilbur.contactoffice.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Brian Leung Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) It would be nice if Emacs Lisp regexps supported positive- and negative-loo= kahead/behind assertions. After Tomohiro Matsuyama attempted to submit a pa= tch in 2009, there was a subsequent discussion (https://emacs-devel.gnu.nar= kive.com/cpv75xJJ/patch-for-lookaround-assertion-in-regexp) that suggested = some possible avenues but ultimately did not lead to anything concrete. --=C2=A0 Sent with https://mailfence.com Secure and private email --=20 Mailfence.com Private and secure email