in reply to Re: Remove all duplicates after regex capture
in thread Remove all duplicates after regex capture

This works perfectly! Thank you very much for your help/time. I feel a bit daft after seeing how (relatively) simple the solution actually was, but I've learned a lot from your code here. Thanks! EDIT: Ah, thanks for the reworking! It was probably my sleep-drived incoherant question that caused the confusion! Thanks again.
  • Comment on Re^2: Remove all duplicates after regex capture

Replies are listed 'Best First'.
Re^3: Remove all duplicates after regex capture
by haukex (Archbishop) on Aug 19, 2018 at 10:49 UTC

    Note that FreeBeerReekingMonk's solution only works because it relies on the blah on the line "title:#this is text I do not want# blah", and it only grabs the first title:. If I remove the blah or reorder the lines in the third example, it does not work.

      yes, that is true. My implementation is faulty.