powered by
Match roman numerals.
ROMANroman(lo, hi)
roman(lo, hi)
An object of class regex (inherits from character) of length 1.
regex
character
A non-negative integer. Minimum number of repeats, when grouped.
positive integer. Maximum number of repeats, when grouped.
as.roman
# Constant form and character class ROMAN roman() x <- c("MMMDCCCXLVIII", "MMMCMDCCCXLVIIV") rx <- rebus.base::exactly(roman()) grepl(rx, x)
Run the code above in your browser using DataLab