Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
Created·2020-08-20 21:40
Flavor·PCRE (Legacy)

/
^([mM]{1,3})?([cC][mM]|[cC][dD]|[dD]?[cC]{1,3}|[dD])?([xX][cC]|[xX][lL]|[lL]?[xX]{1,3}|[lL])?([iI][xX]|[iI][vV]|[vV]?[iI]{1,3}|[vV])?$
/
gm
Open regex in editor

Description

Determines if the string is a roman numeral.

Submitted by anonymous