I have a huge text file with Roman numbers for the paragraphs and I want to substitute them:
text text ... text
I
text ...
II
and so on
My question is: what regular expression describes one Roman number per line?
In other hand this one /^\vM{0,4}(CM|CD|D?C{0,3})(XC|XL|L?X{0,3})(IX|IV|V?I{0,3})$
seems to be ok, except that it includes all blank lines.
How refactor it in a way to exclude the empty lines?