From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?Elias_M=C3=A5rtenson?= Newsgroups: gmane.emacs.devel Subject: Re: modern regexes in emacs Date: Sun, 10 Feb 2019 17:39:19 +0800 Message-ID: References: <20180616123704.7123f6d7@jabberwock.cb.piermont.com> <87po0qs6re.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000243774058186f8b8" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="127186"; mail-complaints-to="usenet@blaine.gmane.org" Cc: emacs-devel , "Perry E. Metzger" To: Jay Kamat Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Feb 10 10:40:20 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 1gslb1-000Wz7-NI for ged-emacs-devel@m.gmane.org; Sun, 10 Feb 2019 10:40:19 +0100 Original-Received: from localhost ([127.0.0.1]:57048 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gslb0-0008Er-NV for ged-emacs-devel@m.gmane.org; Sun, 10 Feb 2019 04:40:18 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:42545) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gslaL-0008El-5o for emacs-devel@gnu.org; Sun, 10 Feb 2019 04:39:37 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gslaJ-0000AN-7I for emacs-devel@gnu.org; Sun, 10 Feb 2019 04:39:36 -0500 Original-Received: from mail-it1-x130.google.com ([2607:f8b0:4864:20::130]:55866) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gslaJ-00005y-12 for emacs-devel@gnu.org; Sun, 10 Feb 2019 04:39:35 -0500 Original-Received: by mail-it1-x130.google.com with SMTP id f18so8339405itb.5 for ; Sun, 10 Feb 2019 01:39:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=HBz3bD4JulWEcXW73G9VAjohahEnN00PfxhUSoA0bGM=; b=h+DBMZgbCis5zwqj3w1Hioz2pISHvOYJDQRhRcR9m+9ktRkX6SZXi0aqWH0YzDlqzy u8pnWo0mligMglkDkErs0TWKJwCYeHU0Xv0W31zmpdVH38szpee8Fn8BiMb9gfcSBxzm LxnXve9XeX6C/DtK32bl6tEfbR9WxGHRbklHAcbGIHm0OPpETywFlmXTx3Gm0jVh+62d 0yCk71r0V6JatDyTkKU++wVkC2XzCaS8Skdmbos1MQ3ZCC13wCNjq6XwHmFlLq/1clPb mJt5XJcRLyImx7+wZVaUssFkRu9YhXHJdK4kHT9rmCvmfmqXROYRi+9gPtiPbT8iwWq+ gKQA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=HBz3bD4JulWEcXW73G9VAjohahEnN00PfxhUSoA0bGM=; b=BehWzh31fJS3nPlOSqtE+Et5SdOvD7b8JLsJMi2/I9LXGy1gJ5QJ74WtnQKE8We2RH KUfK9dtpJnqvVohdAhWD4bX6H2DTIkDH3751qJ1CYcB0mNS91WaH9lj7l8dagvujLnNj I2pB41WDF2NulKZqHS5knGjRkd3Ub1ZRPs96qYYASnzEjG2OYxC8/t9LWbxnQ66EyOoV fGzXVH5v6FBTJp+V/hFvL/plitMYTgtCcYZapvzxjvfhB2mbInXQFNuQHchCJaZc/KBT 0Byp9CymfWzrtjVuJfo46cMW3NJM/9Pmp8ek4mg+LWWJRa+aUSknGA4tRbbJjTJBH4bN 635w== X-Gm-Message-State: AHQUAubajMk9PbYZF9b3Sd/KXMAV+wHXl9dFvTfmghX5PT6sq9izoFnc +clNF1R+lWHLNdiGWOVnfi/R3+QBF4ZqiBndeuQ= X-Google-Smtp-Source: AHgI3IbWnU3d6pf4O+nWHyaK8DPlxPCkadm6yl16VNvxzy0CcCMvK/RU+9ZP0lJc2zxDvKHA0YnSpe2hW1bc0RZgbhw= X-Received: by 2002:a05:660c:30e:: with SMTP id u14mr3534557itj.13.1549791572275; Sun, 10 Feb 2019 01:39:32 -0800 (PST) In-Reply-To: <87po0qs6re.fsf@gmail.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::130 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:233180 Archived-At: --000000000000243774058186f8b8 Content-Type: text/plain; charset="UTF-8" On Sun, 17 Jun 2018, 06:32 Jay Kamat understand than even PCRE. I'd recommend learning and using `rx' if you are > annoyed about backslashes or readability. > While I'm sure that is true for lot of people (and for those, the newly announced xr package helps here), others prefer to use the more compact regex syntax. However, I don't think anyone would argue that the Emacs regex syntax has any advantages compared to pcre. I certainly need to wade through the Emacs regex manual every time I want to do slightly more advanced regex matching, followed by lots of testing. When using regexes in regular editing (as opposed to elisp programming) it's even worse. I'm most definitely in favour of pcre. Regards, Elias > --000000000000243774058186f8b8 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Sun, = 17 Jun 2018, 06:32 Jay Kamat <jay= gkamat@gmail.com wrote:

I just wanted to note that `rx' is in many cases much easier to write a= nd
understand than even PCRE. I'd recommend learning and using `rx' if= you are
annoyed about backslashes or readability.

While I'm sure that is true fo= r lot of people (and for those, the newly announced xr package helps here),= others prefer to use the more compact regex syntax.=C2=A0

However, I don't think anyone would = argue that the Emacs regex syntax has any advantages compared to pcre. I ce= rtainly need to wade through the Emacs regex manual every time I want to do= slightly more advanced regex matching, followed by lots of testing.=C2=A0<= /div>

When using regexes in re= gular editing (as opposed to elisp programming) it's even worse.=C2=A0<= /div>

I'm most definitely = in favour of pcre.=C2=A0
Regards,=C2=A0
Elias=C2=A0
--000000000000243774058186f8b8--