Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
Python

r"
(?!.*([IXCM])(\1{3}))(?!.*([VLD])(\3))^[IVXLCDM]+$
"

Description

It is used to check if the roman number is valid

Submitted by JNg - 2 years ago