3 Replies Latest reply on Mar 19, 2015 1:46 PM by Rocket95

    Escaping the open & closed parenthesis characters

    Rocket95 Level 1

      I am close to finishing a script that would find -- at the end of a graf -- some text in parenthesis and dump it at the top of the graf.

       

      However, in the event there is text in parenthesis in the middle of the graf, I am having trouble with a Negative Lookahead.   I can't seem to have GREP leap past "(sample text in parenthesis)" in the middle of the graf.

       

       

      Example Problem:

      Here is the example text of what I want to accomplish.  Notice that it has (sample text in parenthesis) in the middle of the graf.  It also has text at  the end of the graf in parens that I want to capture. (xxxxx/xxxxx xxxxxx)

       

      Example Solution:

      xxxxx/xxxxx xxxxxx

      Here is the example text of what I want to accomplish.  Notice that it has (sample text in parenthesis) in the middle of the graf.  It also has text at  the end of the graf in parens that I want to capture.