andgineer / TRegExpr

Regular expressions (regex), pascal.
https://regex.sorokin.engineer/en/latest/
MIT License
174 stars 63 forks source link

Lookaround fixes #369

Closed User4martin closed 10 months ago

User4martin commented 10 months ago

Fixes and improvements for look-around

(?=.(capt).)?.*\1 optional look-around was handled incorrectly if it contained code that was later referred.

(?=...)?+ possessive modifiers on look-around were not handled at all.

Also ng ?? and loops if they affected captures.


Last commit is a tiny optimization for speed. (under fpc / but shouldn't hurt any other compiler)