Better HN
topnewbestaskshowjobs
Log inSign up

karthikj2017

1 karma · joined Jun 22, 2017 (9y ago) · 1 submissions

Submissions

comment 9y ago · link · parent

Just wanted to draw your attention to a proof of concept regex engine that I wrote a few years ago that does handle backreferences and arbitrary look around using a Thomson NFA and with no backtracking.

The point of this engine was to show that, while it seems to be commonly believed that an automata-based regex engine cannot handle backreferences and arbitrary look around, that is not entirely true. It does use a stack when it encounters backreferences though.

The source code for the regex engine is at https://github.com/karthikj1/JRegexPlus and a brief explanation of how it works is at http://karthikj1.github.io/JRegexPlus/

I would be interested to hear any thoughts on this.