"Backtracking over a recursion" 在 PCRE 中

"Backtracking over a recursion" in PCRE

https://www.regular-expressions.info/recursebacktrack.html

部分 - "Palindromes of any length in Perl and Ruby"

http://prntscr.com/i06qas

"PCRE, however, does not backtrack into the third recursion. It does backtrack over the third recursion when it backtracks the first alternative in the second recursion."

"it does backtrack over the third recursion"是什么意思? "over" 部分...

Over 表示跳过。

简而言之,这意味着 PCRE 不会 return 在回溯到第三次递归的备选方案的第二侧后再次进入第三次递归以尝试零长度匹配。它会在替代方案的第二面得到满足后立即退出,而不必担心 ? 可能导致跳过文字字符匹配的量词。