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 recursive backtracking. However, I'd like my implementation of the search to use Thompson's multi-state approach. Is this feasible?