@ Bruce:

Unfortunately, my script-fu is not worth mentioning. And yes, my source 
example was poorly formatted. I expect zero or more results for those 
searches, which should result in

file_1.txt: foo
file_1.txt: fOo
file_7.txt: fOO
etc. when searching for f(o)+

@ jj:

> File menu' > 'Export as text ...' usefully exports the results of a 
multi-file search.

I just tried saving a BBEDit multi-file search results window, but it 
doesn’t work: the file menu items are disabled, and the keyboard shortcuts 
don’t work, either.

*But* the content of said multi-file search results window can be selected 
and copied to the clipboard – and that’s fairly close to what I need: the 
file name and the full line with the match.

This allows me to drill down and extract file name and search terms in a 
second pass: 
Search for ^([^:]+):.*(foo)
Replace by \1\t\2

Not perfect, but close enough – so thank you for pointing me in the right 
direction. :)


On Wednesday, January 20, 2021 at 4:44:32 PM UTC+1 jj wrote:

> Hi Martin,
>
> 'File menu' > 'Export as text ...' usefully exports the results of a 
> multi-file search.
> Maybe that's something you could use.
>
> HTH
>
> Jean Jourdain
>

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "[email protected]" rather than 
posting here. Follow @bbedit on Twitter: <https://twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/542dcfc5-634c-4307-8d99-10243f81404an%40googlegroups.com.

Reply via email to