M = 1000 and comes "first", D = 500 and comes "second", etc.
Sure, M is left most, and D is second left most. But your examples have contrary input. "XIX" => "....X.I" contradicts "IX" => "....X.." as far as I can tell.
In reply to Re^2: Help with a Regex
by demerphq
in thread Help with a Regex
by planetscape
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |