Community
    • Login

    Copy all Phone numbers

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    7 Posts 3 Posters 2.4k Views 2 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.
    • Mobil MeisterM Offline
      Mobil Meister
      last edited by

      Hello dear notepad++ user,
      I have a text file,
      and the data is always in this format:

      Name: xxx
      Family name: xxx
      Date of birth: xxxxx
      Street: xxxxx
      No.: xx
      City code: xxxxxx
      City: xxxxxxxx
      Floor: xxxx
      Location: xxxxx
      Telephone: xxxxxxxx
      Email: xxxxxxxxx@xxxxxxxxxxx.xx
      IBAN: xxxxxxxxxxxx
      xxxxxxxxx

      I only want to copy the line “Telephone” into another file,
      preferably separated by commas,

      so he should copy the content of the line Telephone: after the colon into a separate file or into the same file somewhere at the end, preferably one after the other. so

      12346,123465,123125,12312315,12312315

      thanks

      Alan KilbornA 1 Reply Last reply Reply Quote 0
      • Alan KilbornA Online
        Alan Kilborn @Mobil Meister
        last edited by

        @Mobil-Meister

        For the first part, do a Mark operation:

        Try:

        Press Ctrl+m to invoke Mark
        Find what box: (?-is)^Telephone: \K.+
        Wrap around checkbox: check it
        Search mode radiobuttons: select Regular expression
        Press Mark All button
        Press Copy Marked Text button

        Learn to answer questions of this kind yourself in the future; start reading HERE and also check out the N++ user manual’s searching section HERE.

        Neil SchipperN Mobil MeisterM 2 Replies Last reply Reply Quote 3
        • Neil SchipperN Offline
          Neil Schipper @Alan Kilborn
          last edited by Neil Schipper

          @Alan-Kilborn said in Copy all Phone numbers:

          start reading HERE

          Since OP doesn’t appear to know how to do some/all of the non-regex tasks:

          • Find all in current doc
          • In search results pane, Copy Selected Line(s)
          • Using normal mode Find and Replace with empty replace field to delete
          • Using extended mode Find and Replace to convert line ending to comma

          I’m quite certain OP is not ready for the very complex regex documentation article you linked.

          Alan KilbornA 1 Reply Last reply Reply Quote 1
          • Mobil MeisterM Offline
            Mobil Meister @Alan Kilborn
            last edited by

            @Alan-Kilborn
            thanks it worked!

            is it possible to find all double entries?
            not 1by1
            i mean like “delete all doubly entries”

            Alan KilbornA 1 Reply Last reply Reply Quote 1
            • Alan KilbornA Online
              Alan Kilborn @Neil Schipper
              last edited by

              @Neil-Schipper said in Copy all Phone numbers:

              I’m quite certain OP is not ready for the very complex regex documentation article you linked.

              I said …start reading HERE…
              :-)

              1 Reply Last reply Reply Quote 1
              • Alan KilbornA Online
                Alan Kilborn @Mobil Meister
                last edited by

                @Mobil-Meister said in Copy all Phone numbers:

                is it possible to find all double entries?

                If you have the phone numbers, and only the phone numbers, one per line, then you could use this command:

                a6ab81c1-421e-458c-9afe-c1be304dd94b-image.png

                Mobil MeisterM 1 Reply Last reply Reply Quote 2
                • Mobil MeisterM Offline
                  Mobil Meister @Alan Kilborn
                  last edited by

                  @Alan-Kilborn
                  thank you,
                  that work very well

                  problem is if I read most of the time I don’t know what they mean, because I’m asking the wrong questions

                  1 Reply Last reply Reply Quote 0

                  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