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: Tino Calancha
Subject: bug#27659: 26.0.50; Add string-matched-text: string-match + match-string
Date: Thu, 20 Jul 2017 10:19:04 +0900
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux)

Drew Adams <drew.adams@oracle.com> writes:

>> (when (string-match "[[:alpha:]]+-\\([0-9]+\\)" str)
>>   (match-string 1 str))
>> is equivalent to:
>> (string-matched-text "[[:alpha:]]+-\\([0-9]+\\)" str 1)
>
> My own opinion, FWIW, is that the former is much clearer
> and is sufficiently succinct.  YAGNI.
Thank you for your feedback and tips.

I am closing the report since it seems this proposal
doesn't bring us actual value.





reply via email to

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