clean text, delete all but not first numbers above certain sentence/word
-
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.
-
I would go this way
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 selectremove unmarked lines