[pcre-dev] [Bug 617] Several questions

Αρχική Σελίδα
Delete this message
Συντάκτης: Felipe Pena
Ημερομηνία:  
Προς: pcre-dev
Αντικείμενο: [pcre-dev] [Bug 617] Several questions
------- You are receiving this mail because: -------
You are on the CC list for the bug.

http://bugs.exim.org/show_bug.cgi?id=617




--- Comment #5 from Felipe Pena <felipensp@???> 2007-11-19 13:19:26 ---
> 7. When you match /(\D+|<\d+>)*[!?]\Ka+/ with the string
> aaaaaaaaaaaaaaaaaaaa1!aaaaaaaaaaaaaaaaaaaa
> it will backtrack a lot. First \D+ matches all the a's once; then, when it does
> not find ! or ? it will it will match all except the last a with \D+ and then
> repeat by the * to match again. And so on. Nested unlimited repeats usually
> have this property.


Yes, but shouldn't make backtracking only at begin until '!' and perfoms 'a+'
without a backtracking?


--
Configure bugmail: http://bugs.exim.org/userprefs.cgi?tab=email