You are viewing a single comment's thread. Return to all comments →
regex_pattern = r"(?!.*(I{4}|V{2,}|X{4}|L{2,}|C{4}|D{2,}|M{4})).*$" import re print(str(bool(re.match(regex_pattern, input()))))
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 →