1 Reply Latest reply on Jan 4, 2016 5:59 AM by Doc Maik

    I'm trying to run a GREP search in a script, to find text and apply a style...

    frengold1963 Level 1

      This search works to select all the text between the START line and the END line (without selecting the START and END lines):

      (?s)(?<=START:BC-BKN--Timberwolves-Spurs, Long Box).*?(?=END:BC-BKN--Timberwolves-Spurs, Long Box)

       

      But what I want to do is make the team names variable, so we don't have to create a script for every game/team combination (which would be hundreds), something like this:

      (?s)(?<=START:BC-BKN--*, Long Box).*?(?=END:BC-BKN--*, Long Box)

       

      but when I run a regex checker on the previous GREP search, I get the following error:

      Lookbehinds need to be zero-width, thus quantifiers are not allowed.


      If qualifiers are not allowed, how do I make it match any 2 team names, separated by a - (dash) and still select the text between them?