Reply To: I love grep… But got a little problem

Home Page / Forums / General InDesign Topics (CLOSED) / I love grep… But got a little problem / Reply To: I love grep… But got a little problem

#65799

Still no problem ;-)

\([^)]*\u[^)]*\)

This looks for an opening parenthesis, then zero-or-more Not-Close-Paren, followed by an uppercase character, followed by zero-or-more Not-Close-Paren and finally followed by a closing parenthesis.

The Not-Close-Paren sequences are necessary because essentially you want to skip a list of “Not-A-Capital” — which is possible, but that also includes the closing parenthesis. In your example it would start at “(this one..” and end after the “A)”, picking up everything in between as well.

This article was last modified on October 15, 2013

Comments (0)

Loading comments...