3 ms·
The authors’ previous article (linked in this one) was about doing this in re2 (https://systemf.epfl.ch/blog/re2-lookbehinds/ https://systemf.epfl.ch/blog/re2-l
by masklinn 1y ago
The authors’ previous article (linked in this one) was about doing this in re2 (https://systemf.epfl.ch/blog/re2-lookbehinds/ https://systemf.epfl.ch/blog/re2-lookbehinds/), and they have a fork with those changes though I don’t know that they have a PR.
> the "purism" of RE2 does fly in the face of practicality to an irksome degree
It’s not purism tho. There are very practical reasons to want an FA-based engine, and if you compromise that to get additional features then the engine is pointless, you could have just used a backtracking engine in the first place.
- ncruces 1y agoI couldn't find the link in that page, but the fork is here, and seems to be up-to-date: https://github.com/GerHobbelt/re2 https://github.com/GerHobbelt/re2 If you need that from Go, you can probably use that to create a fork of this: https://github.com/wasilibs/go-re2 https://github.com/wasilibs/go-re2
- aurele_ 1y agoThe RE2 fork from the blog post above is this one: https://github.com/epfl-systemf/re2-lookbehinds https://github.com/epfl-systemf/re2-lookbehinds
- ncruces 1y agoThank you! I had searched GitHub by a relevant snippet of code described in the blog and found that one. I guess they merged those changes?