Single Regex for filtering roman numerals from the text files.
Posted
by Nains
on Stack Overflow
See other posts from Stack Overflow
or by Nains
Published on 2010-04-05T09:44:49Z
Indexed on
2010/04/05
9:53 UTC
Read the original article
Hit count: 475
regex
I am stuck in between of a problem where only one pass of regular expression is allowed( some old hard code). I need the regex for roman numerals. I have tried the standard one i.e. ^(?i)M*(D?C{0,3}|C[DM])(L?X{0,3}|X[LC])(V?I{0,3}|I[VX])$, but the problem is it allows null( '') values also. Is there any way around to check is problem?
© Stack Overflow or respective owner