Page 1 of 1
How to search that should find any
Posted: 27 Feb 2024 21:01
by shamsudeen
hi, how are you doing?
here i want to search files that should match any of the words given
see the picture below
121212.png
Thank you
Re: How to search that should find any
Posted: 27 Feb 2024 21:06
by highend
Mode = RegExp
and instead of delimiting your search terms via <space> use |
Re: How to search that should find any
Posted: 28 Feb 2024 07:18
by shamsudeen
it works but is that possible to automate when i paste the text on search field?
Thanks
Re: How to search that should find any
Posted: 28 Feb 2024 10:56
by highend
That field can't automate anything.
Use a conversion script (copy your space-separated search terms to clipboard and then run the script)
Afterwards you can use CTRL+V to paste the necessary text into the field (the mode is selected automatically)....
Code: Select all
// Convert space-separated search terms to regex
$clp = <clp>;
end (strpos($clp, " ") == -1), "No space found in clipboard, aborted!";
end (strpos($clp, <crlf>) != -1), "CRLF found in clipboard, aborted!";
$clp = ">" . regexreplace($clp, "[ ]+", "|");
copytext $clp;
status quote($clp) . " copied to clipboard...";
Re: How to search that should find any
Posted: 28 Feb 2024 11:21
by shamsudeen
Thank you very much.
its done.