Can someone please help me with this?
I'm trying to match roman numerals with a "." at the end and then a space and a capital letter after the point. For example:
I. And here is a line.
II. And here is another line.
X. Here is again another line.
So, the regex should match the "I. A"
, "II. A"
and "X. H"
.
I did this "^(XC|XL|L?X{0,3})(IX|IV|V?I{0,3}){1,4}\.\s[A-Z]"
But the problem is that this RegEx is also matching with ". A"
and i don't want it.
In resume it should have at least one roman numeral, followed by a "."
and then a space and a capital letter.