Community
    • Login

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

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    2 Posts 2 Posters 155 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.
    • Foler KajzaF
      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
        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
        • First post
          Last post
        The Community of users of the Notepad++ text editor.
        Powered by NodeBB | Contributors