How to search that should find any

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
shamsudeen
Posts: 64
Joined: 05 May 2012 06:58

How to search that should find any

Post 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
You do not have the required permissions to view the files attached to this post.

highend
Posts: 14925
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: How to search that should find any

Post by highend »

Mode = RegExp

and instead of delimiting your search terms via <space> use |
One of my scripts helped you out? Please donate via Paypal

shamsudeen
Posts: 64
Joined: 05 May 2012 06:58

Re: How to search that should find any

Post by shamsudeen »

it works but is that possible to automate when i paste the text on search field?

Thanks

highend
Posts: 14925
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: How to search that should find any

Post 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...";
One of my scripts helped you out? Please donate via Paypal

shamsudeen
Posts: 64
Joined: 05 May 2012 06:58

Re: How to search that should find any

Post by shamsudeen »

Thank you very much.
its done.

Post Reply