This regex matches every allowed roman numeral allowed under the traditional system. This system ended at 3999, as this was the biggest expressable number without additional symbols or notation.