Community
    • Login

    clean text, delete all but not first numbers above certain sentence/word

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    2 Posts 2 Posters 319 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.
    • Foler KajzaF Offline
      Foler Kajza
      last edited by

      hi
      I fight to clean this but no success. Have some console log and want to preserve only numbers which contains 5 or more digits above string “background.js:52 Error: Could not establish connection. Receiving end does not exist.”
      in this example want to preserve 605134055 and 590471012.

      background.js:19 1 Ucitavanje stranice
      background.js:24 2 Ubacivanje skripte
      background.js:32 3 download keyworda
      background.js:37 4 klik na download
      background.js:42 5 klik na licencu checkbox, ako ga ima
      background.js:47 6 klik na redownload
      background.js:15 Šifra: 504053149
      background.js:19 1 Ucitavanje stranice
      background.js:24 2 Ubacivanje skripte
      background.js:32 3 download keyworda
      background.js:37 4 klik na download
      background.js:42 5 klik na licencu checkbox, ako ga ima
      background.js:47 6 klik na redownload
      background.js:15 Šifra: 605134055
      background.js:19 1 Ucitavanje stranice
      background.js:24 2 Ubacivanje skripte
      background.js:32 3 download keyworda
      background.js:37 4 klik na download
      background.js:52 Error: Could not establish connection. Receiving end does not exist.
      background.js:15 Šifra: 503688004
      background.js:19 1 Ucitavanje stranice
      background.js:24 2 Ubacivanje skripte
      background.js:32 3 download keyworda
      background.js:37 4 klik na download
      background.js:42 5 klik na licencu checkbox, ako ga ima
      background.js:47 6 klik na redownload
      background.js:15 Šifra: 590471012
      background.js:19 1 Ucitavanje stranice
      background.js:24 2 Ubacivanje skripte
      background.js:32 3 download keyworda
      background.js:52 Error: Could not establish connection. Receiving end does not exist.

      thanks in advance.

      EkopalypseE 1 Reply Last reply Reply Quote 0
      • EkopalypseE Offline
        Ekopalypse @Foler Kajza
        last edited by

        I would go this way

        9f54e52c-68fd-43c2-8514-e02853038a75-image.png

        mark all lines containing a number with 5 or more digits: \d{5,}
        right-click on one of the bookmark symbols (the blue dots) and select remove unmarked lines

        1 Reply Last reply Reply Quote 4

        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