[SOLVED] Extract the last number of each line
-
Hello
On my whole txt I need to copy the last numbers of each line.
I am able to mark them using [0-9]+$ but what to do then?
The best would be to copy the marking. Can’t find :(
Or inverse marking, delete marking then copy all.
Or replace by nothing the inverse of [0-9]+$Sheet N° AZ14 In 57 AZ12 Elt 153 BS08 Elt 06 BS08 Elt 230 AZ10 OUT 32 AZ22 OUT 324
Thanks
-
@mike69290 said in Extract the last number of each line:
The best would be to copy the marking.
Use Search > Mark instead of Search > Find (or switch to the Mark tab if the Find/Replace/Mark dialog is already open). Use the Regex you showed. Use Mark All then Copy Marked Text. This will copy all the matching text to the clipboard.
-
@PeterJones said in Extract the last number of each line:
Copy Marked Text would be the dream solution but as I have written, I can’t find it.
-
Omg found it! I was looking in the menus and searching over the internet a wrong keyword “copy marking”.
Moreover the button is not translated in my langage.
I am sorry for the stupid topic. Thanks
-
@mike69290 said in [SOLVED] Extract the last number of each line:
Omg found it! I was looking in the menus.
It’s also in the menus: Search > Copy Styled Text > Find Mark Style
Moreover the button is not translated in my language.
You might want to check to see if you’ve just got an outdated translation file. Often, config files don’t get overwritten when you do an update. I recommend that you try downloading the most recent zipped edition, and grab the most recent copy of your localization file from there.
But when I searched the localization files for v8.6.4 portable, it appears that only 39 of the 92 localization files have
<Item id="1725"
… so yes, there is a good chance that string (and many others) haven’t made it into your specific localization. Notepad++ relies on volunteers to submit translations, and some of the translations aren’t as active as others. (While the author of Notepad++ knows at least 3 languages fluently (as far as I can tell), I’m sure he doesn’t know all 92 of the localization languages , so cannot keep them up to date without outside help).