|
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 <monnier@iro.umontreal.ca> 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
[Prev in Thread] | Current Thread | [Next in Thread] |