It's fine and thank you! I am playing arround with the idea, in theory all is good.. Only thing is that things like "first non ..." often involve branching that corrupts the prediction ability of the CPU. Therefore I kindly invited you to show it in code.
clausecker|2 months ago
That said, as you seem to actually want to do something with the results, you'll take a branch per match anyway, so I don't see the problem.