Community
    • Login

    I need help with deleting specific lines

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    4 Posts 4 Posters 293 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • JulienSchulz2000J
      JulienSchulz2000
      last edited by

      How can I delete all the duplicate lines with the same person (person/“id”) in there.
      Having duplicate pictures (like SpanMed1418) is not a problem.
      I just cant figure it out.
      Many thanks in advance.

      <record from=“Central European/Central European2769” to=“graphics/pictures/person/2002301095/portrait”/>
      <record from=“SpanMed/SpanMed3162” to=“graphics/pictures/person/2002426795/portrait”/>
      <record from=“South American/South American909” to=“graphics/pictures/person/2002312612/portrait”/>
      <record from=“SpanMed/SpanMed1418” to=“graphics/pictures/person/2002426795/portrait”/>
      <record from=“SpanMed/SpanMed1418” to=“graphics/pictures/person/2002605289/portrait”/>
      <record from=“African/African1904” to=“graphics/pictures/person/2002426795/portrait”/>
      <record from=“Central European/Central European12880” to=“graphics/pictures/person/2002587993/portrait”/>

      Victorel PetrovichV Pierre ÅbergP Paul WormerP 3 Replies Last reply Reply Quote 0
      • Victorel PetrovichV
        Victorel Petrovich @JulienSchulz2000
        last edited by

        @JulienSchulz2000
        This sounds like a search and replace using regex problem.
        Defining a bit better the problem (for ex, duplicate sounds like “identical” to me) and showing what have you tried, where you got stuck - will make it more likely - though not certain - you’ll get some help.

        1 Reply Last reply Reply Quote 0
        • Pierre ÅbergP
          Pierre Åberg @JulienSchulz2000
          last edited by

          @JulienSchulz2000
          Just to make things clear
          This is the before data:
          <record from=“Central European/Central European2769” to=“graphics/pictures/person/2002301095/portrait”/>
          <record from=“SpanMed/SpanMed3162” to=“graphics/pictures/person/2002426795/portrait”/>
          <record from=“South American/South American909” to=“graphics/pictures/person/2002312612/portrait”/>
          <record from=“SpanMed/SpanMed1418” to=“graphics/pictures/person/2002426795/portrait”/>
          <record from=“SpanMed/SpanMed1418” to=“graphics/pictures/person/2002605289/portrait”/>
          <record from=“African/African1904” to=“graphics/pictures/person/2002426795/portrait”/>
          <record from=“Central European/Central European12880” to=“graphics/pictures/person/2002587993/portrait”/>

          And this is what you want the after data to be:
          <record from=“Central European/Central European2769” to=“graphics/pictures/person/2002301095/portrait”/>
          <record from=“South American/South American909” to=“graphics/pictures/person/2002312612/portrait”/>
          <record from=“SpanMed/SpanMed1418” to=“graphics/pictures/person/2002605289/portrait”/>
          <record from=“Central European/Central European12880” to=“graphics/pictures/person/2002587993/portrait”/>
          ?

          1 Reply Last reply Reply Quote 1
          • Paul WormerP
            Paul Wormer @JulienSchulz2000
            last edited by Paul Wormer

            @JulienSchulz2000 A similar problem - and its solution - is discussed in:
            https://community.notepad-plus-plus.org/topic/24686/help-duplicate-files?_=1691569711579

            1 Reply Last reply Reply Quote 1
            • First post
              Last post
            The Community of users of the Notepad++ text editor.
            Powered by NodeBB | Contributors