-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Optional Feature: backtracking is sub-calls #375
Comments
It appears that recursion (rather than sub-call) https://regex101.com/r/T2Il6J/1 If it did backtrack, then IMHO it should match the whole pattern, as it does if the There is a mention of "recursion being atomic" here https://www.rexegg.com/regex-recursion.html |
Actually, changing the regex a bit
|
I would suggest to keep that as a reminder for an optional feature. |
Martin, I am out of code knowledge here. so do the change as you wish. please test it. |
If it is ok, for now just keep the issue open. Needs more research how different engines handle it, and if there is documentation. Then maybe a property controlled behaviour: current or as pcre7.3. Solving this, would need changes that would also remove the 20 levels of recursion. I don't plan any immediate work on it... But might later go for it. |
https://regex101.com/r/g3pDSW/1
TRegExpr fails to match, because it does not backtrack the sub-call.
The text was updated successfully, but these errors were encountered: