View Single Post
Old 06-03-2019, 10:37 AM   #3
Holden100
Member
Holden100 began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Jun 2018
Device: Kindle
Quote:
Originally Posted by theducks View Post
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
Holden100 is offline   Reply With Quote