string("0x") ~> many1(hexDigit)
Is there a way to forcibly commit a branch at a certain point? e.g
choice( discriminator1 *> commit *> valuePart1, discriminator2 *> commit *> valuePart2 )
should not try
discriminator2 if it tried
discriminator2 and succeeded because it reached commit. When
discriminator1 fails, it should try the second branch though. Sometimes I know that as soon as I see something, I know the branch and if anything goes wrong after that, the error is definitively in that branch.