Sorry, not clear. Please help.
I am trying to search and replace while converting PDF to Epub but stuck at how to take care of small Roman numbers (from i to xxxi) that appear as headers in the prologue – the even numbers are: "ii<br>prologue<br>" etc while the odd numbers are prologue"<br>xix<br>" etc.
Clearly [xvi]+ does not help as it ends up highlighting all words which have any of these letters.
Actually, it's a book and the small roman numerals are used only for the prologue pages – which run from 1 to 31, or i to xxxi
The string [xvi] ends up finding over 34,000 occurrences. I am only looking to find around 31.
I don't know regex at all – but clearly it would need something like /b or something to narrow the searches down to only such cases where the words containing them are at the least 1 digit (from i, v, x) through two (ii, iv, vi, ix, xi, xx), three digits (iii, vii, xii, xiv, xvi), four digits (viii, xiii, xvii, xxii, xxiv, xxvi, xxix) and five digits (xviii, xxiii, xxvii) . or at the most six digits (xxviii) long
|