Thread: Regex examples
View Single Post
Old 11-02-2025, 11:15 AM   #808
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,442
Karma: 62503914
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by ElMiko View Post
@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?
You might be right... But... Why not? Belt and suspenders
theducks is offline   Reply With Quote