^M{0,4}(CM|CD|D?C{0,3})(XC|XL|L?X{0,3})(IX|IV|V?I{0,3})$
via regex – How do you match only valid roman numerals with a regular expression? – Stack Overflow.
^M{0,4}(CM|CD|D?C{0,3})(XC|XL|L?X{0,3})(IX|IV|V?I{0,3})$
via regex – How do you match only valid roman numerals with a regular expression? – Stack Overflow.