Quote:
Originally Posted by theducks
You are looking for a sequence of characters contained in the SET [xvi]
Find: [xvi]{1,3}
|
Searching for this string [xvi]{1,3} includes all those words where i, x or v also appear.
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]{1,3} 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