Page 1 of 1

remove file path and line number from Find in Files results

Posted: Thu Mar 10, 2011 9:47 pm
by softweave
I would like to remove the file path and line number from the start of each line in the results of a file search.

For example, replace:

C:\goo\foo.java(43): good stuff

with just:

good stuff

Can someone show me how to do this?

Posted: Thu Mar 10, 2011 10:41 pm
by ben_josephs
Search | Replace... (<F8>):
Find what: ^.*:_ [Replace the underscore with a space]
Replace with: [nothing]

[X] Regular expression

Replace All

Posted: Fri Mar 11, 2011 8:38 am
by MudGuard
if this should happen in the search result window, you have to first switch off the Readonly mode for that window.

thanks

Posted: Fri Mar 11, 2011 12:48 pm
by softweave
This is exactly what I needed