Uwe Brauer <[email protected]> writes:

> I just realized there is a very subtle bug with my patch.
>
>     1. If I insert 11 catchfilebetweentags «enviroments» in one go,
>        everything is fine.
>
>     2. But if I stop with number 10, leave the file and reopen it, then
>        it wants to insert number 10 again and not eleven, I presume
>        something is wrong with regexp ("^%<\\*[^:]*:\\([^>]\\)>$" but I
>        can find the mistake, 
>
> @Arash, what do you say?

I'd say that the regexp

  "^%<\\*[^:]*:\\([^>]\\)>$"

is broken and should be:

  "^%<\\*[^:]*:\\([^>]+\\)>$"

Otherwise it only matches one digit numbers.

Best, Arash

Reply via email to