> Definitely possible with regular expressions. Since you wish to
> match a finite collection of strings, you can just list them with
> ORs between them. i.e.
> 0|1|2|3|4|5|6|7|8|9|10|11| . . . |999
> One (long) line. ;)
Don't give up your day job to become a stand-up comedian. :-(
This pair of lines will kill from 500 lines to infinity (500 to 999,
then 1000 - infinity, to be pedantic. It's that first digit that
introduces logical holes if you're not careful.) Adjust the first
digit to fine tune it.
I suspect that trying to squash it any further would result in logical
holes, and might not run much more efficiently anyway.
/^Lines: [5-9][0-9][0-9]/h:j
/^Lines: [1-9][0-9][0-9][0-9]*/h:j