I need to be able to reformat match_results that contain more than nine captures using format strings. I'm looking for advice as to the easiest way to accomplish this. Is there some existing work I can build on or borrow from?

I need syntax similar to the boost extended syntax, possibly using two digits for the capture number, e.g., '$01' It's important to me to be able to use the extended syntax's conditional expression '?Ntrue-expression:false-expression', again probably with two digits 'NN' in place of the single 'N'.

Any help would be greatly appreciated.

-eb-