[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Allowing spaces in the regexp for outlines
From: |
Emanuel Berg |
Subject: |
Re: Allowing spaces in the regexp for outlines |
Date: |
Thu, 21 Mar 2024 05:59:49 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
Heime wrote:
>> You can also use `comment-start' instead of hardcoding ';',
>> and use explicit repitition instead of hardcoding 3 - see
>>
>> (info "(elisp) Regexp Backslash")
>>
>> - and then also not hardcode the 1s, 2s, 3s, and 4s in pairs
>> but inserting them as integers into the string.
>>
>> So yes, you can improve a lot! And spend all weekend on it.
>
> This is not about improving existing functionality
It is about improving your skills?
> bet allowing aty number of spaces between ;;; and H.
I already wrote, but it didn't appear,
For oh to arbitrary repetition, see * described here
(info "(elisp) Regexp Special")
For whitespace, see [:blank:] here.
(info "(elisp) Char Classes")
Or just use it the way you have it, hardcoded whitespace,
which is also fine.
--
underground experts united
https://dataswamp.org/~incal