[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
A function to take the regexp-matched subsring directly
From: |
daanturo |
Subject: |
A function to take the regexp-matched subsring directly |
Date: |
Sun, 30 Oct 2022 22:17:00 +0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.1 |
How do you think about such a built-in functionality?
I find myself using them in parsing strings alot, most of the time I
just care about whether a particular matched (sub-)expression or not:
Does it match? Yes? Good, throw me result, else give me null.
The implementation is attached. I name it 'regexp-match' (please
change the name if needed).
--
Daanturo.
0001-Define-regexp-match-regexp-match.patch
Description: Text Data
- A function to take the regexp-matched subsring directly,
daanturo <=