Export the matched string 'Find in text'

English support forum

Moderators: Hacker, petermad, Stefan2, white

User avatar
Horst.Epp
Power Member
Power Member
Posts: 6950
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: Export the matched string 'Find in text'

Post by *Horst.Epp »

Using Everything for this task is simple.
Search for whatever you like (name and/or content)
Select all from the Results
File / Export in several formats.
Windows 11 Home, Version 24H2 (OS Build 26100.3915)
TC 11.51 x64 / x86
Everything 1.5.0.1391a (x64), Everything Toolbar 1.5.2.0, Listary Pro 6.3.2.88
QAP 11.6.4.2.1 x64
Oesie
Junior Member
Junior Member
Posts: 18
Joined: 2012-04-21, 07:58 UTC

Re: Export the matched string 'Find in text'

Post by *Oesie »

Horst.Epp wrote: 2025-02-27, 17:46 UTC Using Everything for this task is simple.
Search for whatever you like (name and/or content)
Select all from the Results
File / Export in several formats.
Is this possible with beta (1.5) version and upwards (1.4 does not search for content)?
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6950
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: Export the matched string 'Find in text'

Post by *Horst.Epp »

Oesie wrote: 2025-02-27, 19:31 UTC
Horst.Epp wrote: 2025-02-27, 17:46 UTC Using Everything for this task is simple.
Search for whatever you like (name and/or content)
Select all from the Results
File / Export in several formats.
Is this possible with beta (1.5) version and upwards (1.4 does not search for content)?
There is no reason to stay with version 1.4.
The Alpha version is not what other software mean with Alpha status.
1.5 is stable and so much better than 1.4.
For content searching, one can also index it and even access the Windows search index.
Windows 11 Home, Version 24H2 (OS Build 26100.3915)
TC 11.51 x64 / x86
Everything 1.5.0.1391a (x64), Everything Toolbar 1.5.2.0, Listary Pro 6.3.2.88
QAP 11.6.4.2.1 x64
NotNull
Senior Member
Senior Member
Posts: 298
Joined: 2019-11-25, 20:43 UTC
Location: NL

Re: Export the matched string 'Find in text'

Post by *NotNull »

Oesie wrote: 2025-02-27, 19:31 UTC 1.4 does not search for content
It does. But you can't solve your issue with it. You need Everything 1.5 for that.

Horst.Epp wrote: 2025-02-27, 17:46 UTC Using Everything for this task is simple.
When you know, it is simple. When you don't, it's hard...
(moral of the story: just provide the "simple" solution. )


Search-queries might vary slightly (depending on the actual Everything 1.5 configuration), but these should work:
Oesie wrote: 2025-02-27, 13:23 UTC a regex search for a line containing FOUND
To show all txt files with line(s) that contain "found" (case-insensitive). Show the first matching line

Code: Select all

ext:txt   fromdisk:regex:content:(.*found.*)   columns:name;1

To show all txt files with line(s) that contain "found" (case-insensitive. Show the first 9 matching lines
(regex supports a max of 9 unnamed capture groups)

Code: Select all

ext:txt   global:fromdisk:regex:content:(.*found.*)   columns:name;1;2;3;4;5;6;7;8;9

Oesie wrote: 2025-02-27, 13:23 UTC strings that starts with USD and ends with -
(untested)

Code: Select all

invoice*.pdf   date-modified:last6months   fromdisk:regex:content:(usd.+?\-)   columns:name;1

To export the results:
- Menu => File => Export
- Save As = CSV Comma Separated Values (*.csv)

(there is currently an issue with quoting in the exported CSV format. For now you will need to do a manual search/replace in a text editor to fix that).
Oesie
Junior Member
Junior Member
Posts: 18
Joined: 2012-04-21, 07:58 UTC

Re: Export the matched string 'Find in text'

Post by *Oesie »

NotNull wrote: 2025-02-28, 13:27 UTC
Oesie wrote: 2025-02-27, 19:31 UTC 1.4 does not search for content
It does. But you can't solve your issue with it. You need Everything 1.5 for that.

Horst.Epp wrote: 2025-02-27, 17:46 UTC Using Everything for this task is simple.
When you know, it is simple. When you don't, it's hard...
(moral of the story: just provide the "simple" solution. )


Search-queries might vary slightly (depending on the actual Everything 1.5 configuration), but these should work:
Oesie wrote: 2025-02-27, 13:23 UTC a regex search for a line containing FOUND
To show all txt files with line(s) that contain "found" (case-insensitive). Show the first matching line

Code: Select all

ext:txt   fromdisk:regex:content:(.*found.*)   columns:name;1

To show all txt files with line(s) that contain "found" (case-insensitive. Show the first 9 matching lines
(regex supports a max of 9 unnamed capture groups)

Code: Select all

ext:txt   global:fromdisk:regex:content:(.*found.*)   columns:name;1;2;3;4;5;6;7;8;9

Oesie wrote: 2025-02-27, 13:23 UTC strings that starts with USD and ends with -
(untested)

Code: Select all

invoice*.pdf   date-modified:last6months   fromdisk:regex:content:(usd.+?\-)   columns:name;1

To export the results:
- Menu => File => Export
- Save As = CSV Comma Separated Values (*.csv)

(there is currently an issue with quoting in the exported CSV format. For now you will need to do a manual search/replace in a text editor to fix that).
Thank you! It is really helpful to see the examples and inspires to explore the features of Everything further.
The question is hereby solved :mrgreen:
Oesie
Junior Member
Junior Member
Posts: 18
Joined: 2012-04-21, 07:58 UTC

Re: Export the matched string 'Find in text'

Post by *Oesie »

NotNull wrote: 2025-02-28, 13:27 UTC When you know, it is simple. When you don't, it's hard...
(moral of the story: just provide the "simple" solution. )

To show all txt files with line(s) that contain "found" (case-insensitive. Show the first 9 matching lines
(regex supports a max of 9 unnamed capture groups)

Code: Select all

ext:txt   global:fromdisk:regex:content:(.*found.*)   columns:name;1;2;3;4;5;6;7;8;9
I almost got your solution 'deciphered'. However not everything is explained in the menu "Help - Search Syntax". Also the hits from Google on the voidtools website aren't working because the forum temporarily moved.

For example:
'global:' isn't in the help file. There is one hit: "Prefix a modifier with :: to enable it globally." If it the same, how does this work?
'fromdisk:' explained as "Search for properties and content from disk." Aren't searches performed on disks by default? Your solution also work without this input.
'columns:name;' What does the part 'name' do? I can't see any visual change in GUI or search result when changing or removing this?

Do you have a good source where I should be able to find the answers?
User avatar
tuska
Power Member
Power Member
Posts: 4046
Joined: 2007-05-21, 12:17 UTC

Re: Export the matched string 'Find in text'

Post by *tuska »

Hi,
have a look here:

Temporary linkRegular link .../forum/...
Search ModifiersSearch Modifiers


global:

Temporary linkRegular link .../forum/...
global:global:


Prefix a search modifier with :: to enable it globally.
For example, to enable match case for the rest of the search:
::case: FOO BAR

:: --> Examples --> Search for: ::
Temporary linkRegular link .../forum/...
Search functionsSearch functions
reorder: search modifierreorder: search modifier
::parent: ... -->Macro file : how to reference a default function whose name I gave to a macro?


fromdisk:
 
Temporary linkRegular link .../forum/...
from-disk:from-disk:
Search properties and content on disk (not from the index) or search properties from the index.
Always search unindexed content Always search unindexed content

 
'columns:name;'

Search:
global:fromdisk:regex:content:(.*found.*) columns:name;1;2;3;4;5;6;7;8;9

columns:name;1;2;3;4;5;6;7;8;9 ... creates/shows 9 columns (e.g. in Everything 1.5.0.1391a (x64),
named “Regular Expression Match 1” to “Regular Expression Match 9”.
Oesie
Junior Member
Junior Member
Posts: 18
Joined: 2012-04-21, 07:58 UTC

Re: Export the matched string 'Find in text'

Post by *Oesie »

tuska wrote: 2025-03-01, 11:58 UTC Hi,
have a look here:

Temporary linkRegular link .../forum/...
Search ModifiersSearch Modifiers


global:

Temporary linkRegular link .../forum/...
global:global:


Prefix a search modifier with :: to enable it globally.
For example, to enable match case for the rest of the search:
::case: FOO BAR

:: --> Examples --> Search for: ::
Temporary linkRegular link .../forum/...
Search functionsSearch functions
reorder: search modifierreorder: search modifier
::parent: ... -->Macro file : how to reference a default function whose name I gave to a macro?


fromdisk:
 
Temporary linkRegular link .../forum/...
from-disk:from-disk:
Search properties and content on disk (not from the index) or search properties from the index.
Always search unindexed content Always search unindexed content

 
'columns:name;'

Search:
global:fromdisk:regex:content:(.*found.*) columns:name;1;2;3;4;5;6;7;8;9

columns:name;1;2;3;4;5;6;7;8;9 ... creates/shows 9 columns (e.g. in Everything 1.5.0.1391a (x64),
named “Regular Expression Match 1” to “Regular Expression Match 9”.
With all the suggestions I got it working. Thank you!
Post Reply