Peter Sawczynec wrote: > 62[8-9]|6[3-9][0-9]|7[0-8][0-1] > > Using your clues, above will match 628 through 781 only, correct? > > Peter > No, it doesn't match 779. This is why awk is a better way to do this than grep... It's too hard to understand what these regexes do and too easy to make a mistake writing them.