Reply To: HELP WITH GREP Find any text but not inside parentheses

#70857
Aaron Troia
Participant

I’ve been thinking about your questing for a few days now and I think this should find most of the instances of text between closing and opening parentheses, except for the text before the initial opening and the text after the final closing parentheses.

Find: (?<=\) )(?s:(.+?))(?= \()

To find the text before the initial opening and after the final closing parentheses:

Text before opening parentheses: (?s:(.+?))(?= \()
Text after closing parentheses: (?<=\) )(?s:(.+?))$

Hopefully those will work for what you are trying to do.

This article was last modified on October 2, 2014

Comments (0)

Loading comments...