7 Replies Latest reply on Apr 21, 2015 7:39 AM by Obi-wan Kenobi

    (?R) grep recursive pattern …

    Obi-wan Kenobi Adobe Community Professional

      Hi,

       

      I've needed to italicize (and colorize in red) all text between parentheses as:

       

      xx (xxx xx (xxx) xxxxx (xx)) (xx (xxx) xxxxx) xx((())) xxx (xxx).

       

      So, I've inserted a simple grep style in my para style using this "little" regex:

       

      \(([^()]|(?R))*\)

       

      So cool! Not to be forgotten!