[pcre-dev] Why Greedy Recursion Happens?

Páxina inicial
Borrar esta mensaxe
Autor: NN
Data:  
Para: Pcre-dev
Asunto: [pcre-dev] Why Greedy Recursion Happens?
Hi, Philip!

Why regexp
((?!aaa).)+
eats so much resources?
Subject string is less then 40 kB length without 'aaa', but i get
PCRE_ERROR_RECURSIONLIMIT or PCRE_ERROR_MATCHLIMIT

Regards, Michael.