[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Stackoverflow in regexp matcher
From: |
Nicolas Goaziou |
Subject: |
Re: [O] Stackoverflow in regexp matcher |
Date: |
Wed, 03 Feb 2016 12:19:43 +0100 |
Hello,
"Loris Bennett" <address@hidden> writes:
> re-search-forward("^[^%]*\\\\usepackage.*{biblatex}" nil t)
This is a pathological regexp. [^%] is anything but a percent sign, so
it can contain newline characters. Basically [^%]* can match an entire
buffer if it doesn't contain any %.
I think the regexp used in `reftex-using-biblatex-p' should be
"^[^%\n]*\\\\usepackage.*{biblatex}"
Regards,
--
Nicolas Goaziou