How to use multiregex
How to use multiregex
How to use multi regex for:
folders, subfolders, names?
Each regex separately
folders, subfolders, names?
Each regex separately
Re: How to use multiregex
regex can't distinguish between a file and a folder. It's just text.
Re: How to use multiregex
With everything you can use the regex: modifier and define multiple regex searches, for example:
folder:regex:folders-only-with-this-regex-search regex:\\folder\\with\\these\\subfolders regex:a-search-to-match-the-name-part-only
Using a \\ in a regex search in Everything, will match the whole path and filename.
A space in Everything means AND, eg: regex:abc regex:123 means regex:abc AND regex:123
You can use | for OR, eg: regex:abc | regex:123 means regex:abc OR regex:123
folder:regex:folders-only-with-this-regex-search regex:\\folder\\with\\these\\subfolders regex:a-search-to-match-the-name-part-only
Using a \\ in a regex search in Everything, will match the whole path and filename.
A space in Everything means AND, eg: regex:abc regex:123 means regex:abc AND regex:123
You can use | for OR, eg: regex:abc | regex:123 means regex:abc OR regex:123
Re: How to use multiregex
Objects not found, i.e. the multi regex does not work correctly.
regex must be separate for:
Filename and In Directory
(?-i)^a_[a-z0-9]{8}\.txt | [E-Z]:\\ZK\s.*\\
regex must be separate for:
Filename and In Directory
(?-i)^a_[a-z0-9]{8}\.txt | [E-Z]:\\ZK\s.*\\
Re: How to use multiregex
Multiple regex searches will only work in Everything, and you must use the regex: modifier:
regex:(?-i)^a_[a-z0-9]{8}\.txt regex:[E-Z]:\\ZK\s.*\\
Regex must be disabled under the Search menu to use the regex modifier.
regex:(?-i)^a_[a-z0-9]{8}\.txt regex:[E-Z]:\\ZK\s.*\\
Regex must be disabled under the Search menu to use the regex modifier.
Re: How to use multiregex
Work.void wrote:Multiple regex searches will only work in Everything, and you must use the regex: modifier:
regex:(?-i)^a_[a-z0-9]{8}\.txt regex:[E-Z]:\\ZK\s.*\\
Regex must be disabled under the Search menu to use the regex modifier.
Last edited by Debugger on Wed Oct 24, 2018 8:51 am, edited 1 time in total.
Re: How to use multiregex
Please check your regex searches, does
regex:(?-i)^a_[a-z0-9]{8}\.txt
find anything on its own?
Does
regex:[E-Z]:\\ZK\s.*\\
find anything on its own?
Try shortening your regex searches, does the following find anything:
regex:(?-i)^a_[a-z0-9] regex:[E-Z]:\\
regex:(?-i)^a_[a-z0-9]{8}\.txt
find anything on its own?
Does
regex:[E-Z]:\\ZK\s.*\\
find anything on its own?
Try shortening your regex searches, does the following find anything:
regex:(?-i)^a_[a-z0-9] regex:[E-Z]:\\
Re: How to use multiregex
regex:(?-i)^[y|z|w]_[a-z0-9]{8}\.jpg regex:[E-Z]:\\ZK\s.*\\
regex:[E-Z]:\\ZK\s.*\\
It works, but it should only find subfolders:
-XXX_XXX
XXX_XXX
-XXX
XXX
X - number
other SUBFOLDERnames to exclude
Filename wrong search
regex:(?-i)^[y|z|w]_[a-z0-9]{8}\.jpg
EXAMPLE:
K:\ZK USA\267739000_0\--4HezhXZiE.jpg <= It should not be found
regex:[E-Z]:\\ZK\s.*\\
It works, but it should only find subfolders:
-XXX_XXX
XXX_XXX
-XXX
XXX
X - number
other SUBFOLDERnames to exclude
Filename wrong search
regex:(?-i)^[y|z|w]_[a-z0-9]{8}\.jpg
EXAMPLE:
K:\ZK USA\267739000_0\--4HezhXZiE.jpg <= It should not be found
Re: How to use multiregex
Are these folders directly under [e-z]:\ZK *\?It works, but it should only find subfolders:
-XXX_XXX
XXX_XXX
-XXX
XXX
Please try searching for:
regex:"[E-Z]:\\ZK\s.*\\(-\d\d\d_\d\d\d|\d\d\d_\d\d\d|-\d\d\d|\d\d\d)\\"
Please escape | with double quotes:regex:(?-i)^[y|z|w]_[a-z0-9]{8}\.jpg
regex:"(?-i)^[y|z|w]_[a-z0-9]{8}\.jpg"
Re: How to use multiregex
Still wrong regex:
it should not match this type of name
y_7517b31c.jpg @ iMGSRC.jpg
w_d9710151.jpg.part
regex:"(?-i)^[y|z|w]_[a-z0-9]{8}\.jpg|(?-i)^[a-zA-Z0-9-_]{11}\.jpg"
Leeter Disk E-Z:
The FOLDERname of the beginning of the ZK
EXAMPLE FOLDERNAME:
ZK 1
ZK USA 1
ZK Car 65 K
L:\ZK чуло 2\67561715_62563
L:\ZK чуло 2\67561715
L:\ZK чуло 2\-67561715_0
L:\ZK чуло 2\-67561715
Wrong regex. Several thousand results were not found, only about 200 results are shown
regex:"[E-Z]:\\ZK\s.*\\(-\d\d\d_\d\d\d|\d\d\d_\d\d\d|-\d\d\d|\d\d\d)\\"
SUBFOLDERNAME:
Always:
-d+_d+
d+_d+
-d+
d+
it should not match this type of name
y_7517b31c.jpg @ iMGSRC.jpg
w_d9710151.jpg.part
regex:"(?-i)^[y|z|w]_[a-z0-9]{8}\.jpg|(?-i)^[a-zA-Z0-9-_]{11}\.jpg"
Leeter Disk E-Z:
The FOLDERname of the beginning of the ZK
EXAMPLE FOLDERNAME:
ZK 1
ZK USA 1
ZK Car 65 K
L:\ZK чуло 2\67561715_62563
L:\ZK чуло 2\67561715
L:\ZK чуло 2\-67561715_0
L:\ZK чуло 2\-67561715
Wrong regex. Several thousand results were not found, only about 200 results are shown
regex:"[E-Z]:\\ZK\s.*\\(-\d\d\d_\d\d\d|\d\d\d_\d\d\d|-\d\d\d|\d\d\d)\\"
SUBFOLDERNAME:
Always:
-d+_d+
d+_d+
-d+
d+
Last edited by Debugger on Wed Oct 24, 2018 10:32 am, edited 1 time in total.
Re: How to use multiregex
Please try:y_7517b31c.jpg @ iMGSRC.jpg
regex:"(?-i)^[y|z|w]_[a-z0-9]{8}\.jpg$"
The trailing $ means match end of filename.
Please try:Always:
-d+_d+
d+_d+
-d+
d+
regex:"[E-Z]:\\ZK\s.*\\-?\d+(_\d+)?\\"
-? = match - if it exists
\d+ = match one or more digits
(_\d+)? = match _ followed by one or more digits -if it exists.
Re: How to use multiregex
Now it seems that the regex works correctly:
Code: Select all
regex:"(?-i)^[y|z|w]_[a-z0-9]{8}\.jpg$|(?-i)^[a-zA-Z0-9-_]{11}\.jpg$" regex:"[E-Z]:\\ZK\s.*\\-?\d+(_\d+)?\\"
"$" not required in other applications if set {8} or {11} charactersThe trailing $ means match end of filename.
Re: How to use multiregex
You might like to try merging this into one regex search:
[E-Z]:\\ZK\s.*\\-?\d+(_\d+)?\\(.*\\)?([y|z|w]_[a-z0-9]{8}|[a-zA-Z0-9-_]{11})\.jpg$
Please make sure Regex is enabled from the Search menu.
[E-Z]:\\ZK\s.*\\-?\d+(_\d+)?\\(.*\\)?([y|z|w]_[a-z0-9]{8}|[a-zA-Z0-9-_]{11})\.jpg$
Please make sure Regex is enabled from the Search menu.
Re: How to use multiregex
It works in Everything, but I also use a good MasterSeeker program and informs me of an error:
Code: Select all
System.ArgumentException: parsing "(.*" - Not enough closing brackets.
Code: Select all
System.ArgumentException: analizowanie "(.*" - Za mało nawiasw zamykających.
w System.Text.RegularExpressions.RegexParser.ScanRegex()
w System.Text.RegularExpressions.RegexParser.Parse(String re, RegexOptions op)
w System.Text.RegularExpressions.Regex..ctor(String pattern, RegexOptions options, Boolean useCache)
w #=qZJWc0mLBz7lxCZZrijayaAkhGOVi6IhMFy4SlawppP$b9T_1OnCKueOr25WM58fE.#=qPlBO0oK8wzHQ7GGtKMXXKW7SQNDWEAPUlBXcPLOe4PFikMIOkjXhja$OXWOShQLx(String #=q1$3J8ETTd3NCqf9si98Gyw==, Boolean #=qDzMOefTu6XnrvtDqg62m7w==)
w #=qZJWc0mLBz7lxCZZrijayaAkhGOVi6IhMFy4SlawppP$b9T_1OnCKueOr25WM58fE.#=qG5rlzvKVDX0X6bjDtDIbKwNiZbPkEHsc_P2UZWsASx2YI1BN7P4EEKkoZeBVkoOg()
w #=qhSmZU0Dsm4vykY_ZVEre1uxR4d5Ba6d2zzsjok9jeMU=.#=qbufCwxIYXbsgUHoxuoAtRooIKxkpBViTxNI4VStbt60=(#=qZJWc0mLBz7lxCZZrijayaAkhGOVi6IhMFy4SlawppP$b9T_1OnCKueOr25WM58fE #=qIHmaf5LojM5UH1f5KRQZ_Q==)