help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How are regexen implemented in Emacs?


From: Stefan Monnier
Subject: Re: How are regexen implemented in Emacs?
Date: Mon, 12 Dec 2022 16:24:54 -0500
User-agent: Gnus/5.13 (Gnus v5.13)

> Very interesting.  Re: back references, are even "regexen" with back
> references still real regular expressions?

No, back references aren't part of the "regular language" family.
They can't easily be accommodated by the usual DFA/NFA
non-backtracking matchers (and IIRC they are fundamentally
exponential-complexity in the worst case), tho some do handle them
(by falling back to a backtracking algorithm, AFAIK).


        Stefan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]