Parameter to Remove line numbers from Find results
-
I am browsing large text files (logs) with Notepad++.
When I search (CTRL+F) for a word (eg. “error”) N++ generates a Find result, where the line numbers are always present. These
numbers have different identication depending on the length of line number.
Line 9: ERROR MESSAGE: 0025 0000 abcd 0000 00 00 0000 CC42 0000
Line 63: ERROR MESSAGE: 0026 0000 abcd 0000 00 00 0000 CE34 0000
Line 101: ERROR MESSAGE: 002A 0000 abcd 0000 00 00 0000 CC42 0000
Line 1209: ERROR MESSAGE: 009A 0000 abcd 0000 00 00 0000 CBB8 0000
When I copy this to another text file, I have to manually remove this unnecessary information, to get the useful data.
Would it be possible to implement a parameter to N++, like “Show line numbers in Find result” becomes optional?Thank you.
Gabor -
Check out this posting, maybe it will help you: https://notepad-plus-plus.org/community/topic/10436/containing-line-numbers-from-find-window-not-copied-anymore/2
-
Donno about config, but using regex could be a solution.
Copy all the Find result to a new windowLine 9: ERROR MESSAGE: 0025 0000 abcd 0000 00 00 0000 CC42 0000
Line 63: ERROR MESSAGE: 0026 0000 abcd 0000 00 00 0000 CE34 0000
Line 101: ERROR MESSAGE: 002A 0000 abcd 0000 00 00 0000 CC42 0000
Line 1209: ERROR MESSAGE: 009A 0000 abcd 0000 00 00 0000 CBB8 0000Then press ctrl+H, Finid What:
^[^:]*:, Replace With: <empty string>.
Then you get:ERROR MESSAGE: 0025 0000 abcd 0000 00 00 0000 CC42 0000
ERROR MESSAGE: 0026 0000 abcd 0000 00 00 0000 CE34 0000
ERROR MESSAGE: 002A 0000 abcd 0000 00 00 0000 CC42 0000
ERROR MESSAGE: 009A 0000 abcd 0000 00 00 0000 CBB8 0000 -
Guys, it’s already implemented
Do a right click and use “copy” built-in function.
It’s different that “select all” and “copy” with accelerator key
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