9 Replies Latest reply on May 28, 2015 8:15 PM by Grungeman92

    GREP shortest match not working even with positive look behind and positive look ahead, ID CC 2014


      Problem: GREP isn't limiting it's styling even when shortest match is applied and with positive look behind.


      My expression reads:

      Screen Shot 2015-05-26 at 9.06.37 PM.png

      The result is this:

      Screen Shot 2015-05-26 at 8.45.47 PM.png


      I applied a red text color manually to indicate that the text around the ~ is the only thing which should be highlighted. The content between the last semi colon and a tilde needs to be highlighted, and the content between the tilde and the first comma needs to be highlighted.

      It appears that


      works for content between a tilde and a comma but not the semi colon and the tilde.


      Been racking my brain for hours on this one. Why is GREP being greedy when I am telling it not to be?