Regular Expressions 101

Community Patterns

Roman numerals

0

Regular Expression
PCRE (PHP <7.3)

/
[IV][IX]?[I]?[I]?
/
g

Description

Verify the form of the Roman numbers 1 - 9.

Submitted by anonymous - 7 years ago