Hey I have a huge text which goes like this
some_data I POST postdata_1 IV POST postdata_4 III POST postdata_3 II POST postdata_2
So the post data has a the corresponding post number in Roman Numeral before the word 'POST'.
I want to put this into tags as
<post number>
I
</post number>
<post data>
post_data1
</post data>
And so on for every post..
Can someone help me out with a regular expression for this? I'm using Ruby
If I understand well, this will work how you expect:
Roman numbers regex by paxdiablo, here.