FWIW, I realised my code is a bit buggy with respect to some patterns (basically, I only build an NFA and then try to follow it deterministically, I think it would fail on patterns like "(ab)?ad" or "(ab)|(ad)") but I also think that it's fine for the vt100 escape code matching done here.
FWIW, I realised my code is a bit buggy with respect to some patterns (basically, I only build an NFA and then try to follow it deterministically, I think it would fail on patterns like "(ab)?ad" or "(ab)|(ad)") but I also think that it's fine for the vt100 escape code matching done here.