You're right: the non-overlapping feature disables this approach. Then only a possible thought remains: group the regexps by their starts, like a true, and match different branches by concatenation, but differentiate with loops. I don't know whether this is feasible or sane at all, sorry.
-- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.