Community Patterns

Community Library Entry

0

Regular Expression
Created·2023-03-29 06:32
Flavor·Python

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

Description

It is used to check if the roman number is valid

Submitted by JNg