#StackBounty: #algorithms #finite-automata #regular-expressions Extracting regex submatch boundaries without backtracking

Bounty: 50

I’m attempting to develop from scratch a simple regex engine. I would like for my engine to have the ability to report, "The regex matched on a substring of this line starting at index and ending at index ."

It makes sense to me how to accomplish this using the recursive backtracking approach. However, is it feasible to report the indices while using Thompson’s multi-state method?

Get this bounty!!!

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.