Thread: Regex examples
View Single Post
Old 11-02-2025, 10:13 AM   #807
ElMiko
Fanatic
ElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileRead
 
ElMiko's Avatar
 
Posts: 507
Karma: 65460
Join Date: Jun 2011
Device: Kindle
@theducks, you know, now that I think about it some more, I'm wondering if the upper range on the quantifier is necessary at all. Since there are no other permitted characters (including spaces)—except potentially "Chapter"—and I don't think there are any words that are composed exclusively of any combination of those 5 letters and that wouldn't already be capture by the existing {1,8} range (e.g. "ILL" or "CIVIL"), it seems the quantifier isn't actually limiting any false positives that {1,} would erroneously include.

What do you think?
ElMiko is offline   Reply With Quote