Community
    • Login

    I need help with deleting specific lines

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    4 Posts 4 Posters 835 Views 1 Watching
    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 Offline
      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”/>

      ? Pierre ÅbergP Paul WormerP 3 Replies Last reply Reply Quote 0
      • ? Offline
        A Former User @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 Offline
          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 0
          • Paul WormerP Offline
            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

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            • First post
              Last post
            The Community of users of the Notepad++ text editor.
            Powered by NodeBB | Contributors