From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: John Mastro Newsgroups: gmane.emacs.bugs Subject: bug#27659: 26.0.50; Add string-matched-text: string-match + match-string Date: Fri, 21 Jul 2017 16:28:55 -0700 Message-ID: References: <87fue2rxm1.fsf@calancha-pc> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Trace: blaine.gmane.org 1500679819 4497 195.159.176.226 (21 Jul 2017 23:30:19 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 21 Jul 2017 23:30:19 +0000 (UTC) Cc: 27659@debbugs.gnu.org, Michael Heerdegen , Philipp Stephani , Tino Calancha To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jul 22 01:30:14 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1dYhN6-0000bL-7m for geb-bug-gnu-emacs@m.gmane.org; Sat, 22 Jul 2017 01:30:12 +0200 Original-Received: from localhost ([::1]:45132 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dYhN8-0008QV-PS for geb-bug-gnu-emacs@m.gmane.org; Fri, 21 Jul 2017 19:30:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:32836) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dYhN0-0008NB-Bb for bug-gnu-emacs@gnu.org; Fri, 21 Jul 2017 19:30:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dYhMx-0002g9-9C for bug-gnu-emacs@gnu.org; Fri, 21 Jul 2017 19:30:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:49027) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dYhMx-0002f9-62 for bug-gnu-emacs@gnu.org; Fri, 21 Jul 2017 19:30:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dYhMw-0007Gz-Dk for bug-gnu-emacs@gnu.org; Fri, 21 Jul 2017 19:30:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: John Mastro Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 21 Jul 2017 23:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 27659 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: wontfix Original-Received: via spool by 27659-submit@debbugs.gnu.org id=B27659.150067976427884 (code B ref 27659); Fri, 21 Jul 2017 23:30:02 +0000 Original-Received: (at 27659) by debbugs.gnu.org; 21 Jul 2017 23:29:24 +0000 Original-Received: from localhost ([127.0.0.1]:51704 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dYhMJ-0007Fg-Sp for submit@debbugs.gnu.org; Fri, 21 Jul 2017 19:29:24 -0400 Original-Received: from mail-qt0-f169.google.com ([209.85.216.169]:34860) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dYhMI-0007FQ-47 for 27659@debbugs.gnu.org; Fri, 21 Jul 2017 19:29:22 -0400 Original-Received: by mail-qt0-f169.google.com with SMTP id b40so47998407qtb.2 for <27659@debbugs.gnu.org>; Fri, 21 Jul 2017 16:29:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=TEpCaJWI9+WqJnrQxXcBEbuo3GQ3mcmrJjeNV7IoAEA=; b=CbXhjyfeoSxUKQCzGVOZkFzrfEaVMRu5oIY5H1rv4wP/6HQ0lb/owXOH/Cl/EwnnZj gNBX4tqjceNaX5Mhnwvu9Gd1cINTbBVCIc5BBxPhaTLCBkwLMb12z/93YP7188eDXXkC K1SWhElWQMOA/8Z5+PlGk2nzQbuysicAdTt8WPzY3ARfvjylHGruKGaIU7jHpmF6QV/D GVzlN1u7xnyCQ3NiWixcqMrIb56oA2DximaWCH6QL/dC9TqpksCI3gqQXsfWIhwxNIJl BgkwDmzDq+Bl7L0UrtIQ0BqP011bXOxE3Xfi3BS+8EM9FL3IqQ97LqpK/OsGLuOvoks1 iABQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=TEpCaJWI9+WqJnrQxXcBEbuo3GQ3mcmrJjeNV7IoAEA=; b=g6Z5gPGhxVXfflrJKpJ6yaWfCplYr+lHIfca+E3JG10DinNIglcLzzXyx9veJYMOm2 Vid2ENFzvIj3C/NxpOXhjJtM3HGt/MbDoOwWCfkCjDNyC3G1PDr3dYSGMJZ7rF948YJZ Skotj0+MzCiUYaCFGE4+f37j6QIFdZip+IXo/bEsDNlFLPxFbtiekaXvi2/LPdMOh3lP v7eSOWEdvuYDK3F43Uw6Y2GcezapMqA0OFv8llo0H8r6KyqhexTmU6VCYuCJs5CGeXmZ WFdh+BKRUNnTq4tkgfZlNmXeqcDu0ocMgecOARsxAlsXQ6RFaD9lUY7nvVuWLUz6QDsQ UW6g== X-Gm-Message-State: AIVw1106RZOKeJ3Pr9mjbkUWI2V3gm4IHOn3LxRAb/zdpbIqMb2LdYBk cUi3AK0e3rETvwGGydYm/VJXCOj44g== X-Received: by 10.200.43.163 with SMTP id m32mr12151860qtm.296.1500679756399; Fri, 21 Jul 2017 16:29:16 -0700 (PDT) Original-Received: by 10.237.48.241 with HTTP; Fri, 21 Jul 2017 16:28:55 -0700 (PDT) In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:134834 Archived-At: Stefan Monnier wrote: > If you prefer the standard/cryptic regexp syntax, I posted a similar > thingy in the past (see below). > > This lets you do > > (pcase "foo-123" > ((re-match "[[:alpha:]]+-\\(?num:[0-9]+\\)") > num)) > => "123" > > Maybe I should install it in pcase.el? I hope you do - both this and the rx pattern would be nice to have. John