Skip to primary content

Bucktown Bell

Cut to the chase.

Bucktown Bell

Main menu

  • Home
  • Baseball Analytics
  • Contact Me

Post navigation

← Previous Next →

regex – How do you match only valid roman numerals with a regular expression?

Posted on April 20, 2012 by mea

^M{0,4}(CM|CD|D?C{0,3})(XC|XL|L?X{0,3})(IX|IV|V?I{0,3})$

via regex – How do you match only valid roman numerals with a regular expression? – Stack Overflow.

 

This entry was posted in Development and tagged perl, reference, regexp by mea. Bookmark the permalink.
Proudly powered by WordPress