Loading ...
Sorry, an error occurred while loading the content.

17168Re: [Clip] I can do part of this with reg-ex

Expand Messages
  • Sheri
    Dec 1, 2007
    • 0 Attachment
      Sheri wrote:
      > Dave wrote:
      >> Hi ignore what I just sent I did not second one
      > The greedy one as written was requiring a line break at the end of every
      > line. It wouldn't work on the last group if the last entry for the last
      > group terminated at the end of the file instead of the end of a line.
      > That pattern could be changed to accept either a line break or the end
      > of the file.
      > ^!Find "^(.+? - )(?s).+^\1(?-s).+\R|\z" RS
      > Regards,
      > Sheri
      The non-greedy one seemed to have the same issue. Could be changed to

      ^!Find "^(.+? - )(?s).+?((^(?!\1))|\z)" RS

      Dave I'm not sure what you were saying.

    • Show all 9 messages in this topic