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
To finally remove all the comments in books < 1,000 words