Regex matching punctuation and roman in lowercase

1k views Asked by At

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

Hi,

How do I match regex to something like

[i])
[ii])
[iii])
[iv])

and so on...

Thanks

1

There are 1 answers

1
Marc B On BEST ANSWER
/^\[[ivmcldx]+\])/

should catch the most common roman numerals. It won't stumble on invalid numerals like iiix, though.