View Single Post
Old 01-31-2022, 11:19 AM   #4
slantybard
my parent's oops...
slantybard ought to be getting tired of karma fortunes by now.slantybard ought to be getting tired of karma fortunes by now.slantybard ought to be getting tired of karma fortunes by now.slantybard ought to be getting tired of karma fortunes by now.slantybard ought to be getting tired of karma fortunes by now.slantybard ought to be getting tired of karma fortunes by now.slantybard ought to be getting tired of karma fortunes by now.slantybard ought to be getting tired of karma fortunes by now.slantybard ought to be getting tired of karma fortunes by now.slantybard ought to be getting tired of karma fortunes by now.slantybard ought to be getting tired of karma fortunes by now.
 
Posts: 493
Karma: 1477572
Join Date: Feb 2009
Device: Vx->Handera->Clie-> Axim->505->650->KPW/Aura ->L2->iOS/CBW
Thank you both very much for the suggestions. Regex is wonderfully wacky! I ended up using the original suggestion prior to seeing the improved suggestions. In the end, I used:
Quote:
(\d{1}[,]\d{3}[,]\d{3} (W|w)ords)
To remove all the comments in books with > 1,000,000 words

Quote:
(\d{3}[,]\d{3} (W|w)ords)
To remove all the comments in books between 100,000 and 1,000,000 words

Quote:
(\d{2}[,]\d{3} (W|w)ords)
To remove all the comments in books between 10,000 and 100,000 words

Quote:
(\d{1}[,]\d{3} (W|w)ords)
To remove all the comments in books between 1,000 and 10,000 words

Quote:
(\d{3} (W|w)ords)
To finally remove all the comments in books < 1,000 words
slantybard is offline   Reply With Quote