4 Replies Latest reply: May 25, 2012 9:56 AM by rick_schwein RSS

    Script/grep to find a range of text marked with tags

    Marcos Suárez Community Member

      I need a script/grep to find a range of text marked with tags. Can exist in the range 0, 1 or more "\ r".

      It would be something like this ...

       

      <cite>((.*\r)+?.*?)</cite>

       

      The script/grep should always select the shortest match:

       

      <cite>xxxxxxxx.

      xxxxxxxxxxxxxxxxxxx

      xxxxxxxxxxxx

       

      xxxxxx

      xxxxxxxxxx</cite>

       

      <cite>xxxxxxxx.

      xxxxxxxxxxxxxxxxxxx

       

      xxxxxxxxxxxx

       

      xxxxxxxxxxxx</cite>

       

       

      Thanks in advance ...!!!