[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Why does this re-search forward fail?
From: |
Arthur Miller |
Subject: |
Re: Why does this re-search forward fail? |
Date: |
Tue, 20 Apr 2021 16:55:02 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.1 (windows-nt) |
Andreas Schwab <schwab@linux-m68k.org> writes:
> On Apr 20 2021, Arthur Miller wrote:
>
>> The RE I search for is:
>>
>> (defvar hbm--src-marker-re "^[ \t]*#\\+\\|begin_src\\|end_src")
>
> What is that regexp supposed to match?
Just #+begin_src or #+end_src
preceded by blanks, just spaces and tabs.
> Why is it not defined like this:
>
> (defvar hbm--src-marker-re "^[ \t]*#\\+\\(begin_src\\|end_src\\)")
I think I had it so at some time, but it didn't worked for some reason,
or it was same problem. I don't remember, but I went away from it. I
just tried again; it made no difference. In test.org I still get first
55 blocks processed.
Anyway thanks, I think it is more correct to group it with '(' and ')'.
/a