Reply To: Searching and replacing using GREP – excluding found characters

Home Page / Forums / General InDesign Topics (CLOSED) / Searching and replacing using GREP – excluding found characters / Reply To: Searching and replacing using GREP – excluding found characters

#62447

This ought to work:

(?<=m)d

You can think of this procedural method: first, ignore “lookbehind” and “lookahead” commands, and search for the actual text

md

and then exclude the “lookbehind/lookahead” parts from the selection.

It doesn't really work as described, because you can also rewrite your first attempt to

d(?<=md)

… in fact skipping back over the “just-encountered-digit” in the lookbehind …

Hope this clarifies it a bit!

This article was last modified on June 16, 2012

Comments (0)

Loading comments...