You are viewing a single comment's thread. Return to all comments →
thousand = 'M{,3}' hundred = '(C[DM]|D?C{,3})' ten = '(X[LC]|L?X{,3})' one = '(I[VX]|V?I{,3})' regex_pattern = f'{thousand}{hundred}{ten}{one}$'
Seems like cookies are disabled on this browser, please enable them to open this website
Validating Roman Numerals
You are viewing a single comment's thread. Return to all comments →