0

Looking to validate/Match Roman Numerals, are there any libraries or functions that can do this?

Would a RegEx work?

Not sure about how to go about this, any thoughts? suggestions?

I did see this PEAR package: Numbers Roman but looks like it's not actively being updated.

kapa
  • 75,446
  • 20
  • 155
  • 173
Phill Pafford
  • 80,991
  • 89
  • 259
  • 379

2 Answers2

3

Here is a regex solution:

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

Community
  • 1
  • 1
Andrew Clark
  • 192,132
  • 30
  • 260
  • 294
1
Community
  • 1
  • 1
Luca Filosofi
  • 30,511
  • 8
  • 67
  • 75