Reply To: GREP help

#57277

(Aside – you're never too old to learn –:)

A few of the common set commands also have a negatory command built-in:

D is not d — anything except a digit

U is not u

L is not l

W is not w

S is not s

B is not b (not usable on its own)

The big caveat with all of these is that they also ignore the Hard Return! (*) But when you explicitly test with '^' and '$', Peter's GREP can be written, slightly shorter, as

^L+$

(*) Which can be really annoying, because all other wildcards stop at the next Hard Return, unless specifically instructed otherwise.

This article was last modified on January 13, 2016

Comments (0)

Loading comments...