25 Replies Latest reply on Mar 9, 2017 8:42 AM by camilo umana

    Grep: find text between quotations when the number of words are more than 20?

    camilo umana Level 1

      (?<=“).*?(?=“)

       

      is a grep expression to find text inside quotation marks.

       

      but how to delimit the search to define exactly a number of words inside the curly quotes?

      for example, detect only quotations that have more than n words? 50, for example?

       

      this comes as it is a publishing practice to style those «block quotations»  and get broken off without quotation marks.

       

      thanks