bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#27659: 26.0.50; Add string-matched-text: string-match + match-string


From: John Mastro
Subject: bug#27659: 26.0.50; Add string-matched-text: string-match + match-string
Date: Fri, 21 Jul 2017 16:28:55 -0700

Stefan Monnier <address@hidden> 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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]