How to handle line pasting with regex?

General discussion related to "Everything".
Post Reply
Debugger
Posts: 621
Joined: Thu Jan 26, 2017 11:56 am

How to handle line pasting with regex?

Post by Debugger »

How to handle line pasting with regex?
It doesn't work for me, for example.
WORK
<name1|name2|name3>

NOT WORK
<name1|name2|name3> .*djh.*1mix.*a1000dj.*

OR NOT WORK
The thing is that this phrase all doesn't work when I type the path to a file folder for example.
<name1|name2|name3> G:\folder name
void
Developer
Posts: 16428
Joined: Fri Oct 16, 2009 11:31 pm

Re: How to handle line pasting with regex?

Post by void »

Support for pasting multiple lines with regex enabled under the search menu is on my TODO list.

Currently, this will not work.



One work around is to disable pure regex:
  • In Everything 1.5, from the Tools menu, click Options.
  • Click the Advanced tab on the left.
  • To the right of Show settings containing, search for:
    regex
  • Select: pure_regex
  • Set the value to: false
  • Click OK.
pure regex will treat the entire search as literal regex.
With pure regex disabled, you can use Everything operators (space, ! < >) and Everything search functions (eg: size:).



I recommend leaving Search -> Regex unchecked and prefix your regex term with regex:

For example:

<name1|name2|name3> regex:.*djh.*1mix.*a1000dj.*
Post Reply