Reply To: Grep Search

#55284

How, in GREP, do you search for a string of specific words?

You type them :-) Without any lookahead/lookbehind or other GREP conditions, what you enter is what it'll search. (At least for regular text and digits — other symbols may need escaping, because they might be GREP instructions.)

It appears you want to find (and mark) this text and only when it's preceded by a digit. Well, the digit can be taken care of with a lookbehind, and the rest is a “regular” find. Try this:

(?<=d) words in optional trims

This article was last modified on March 25, 2010

Comments (0)

Loading comments...