Search with Regex within a specific folder #536
-
I am able to search within a specific folder, just by starting the search with something like "/home/user/folderX/folderY". Also searching with RegEx is succesfull, for example searching for "\d{8} - \d{6}" which matches a lot of my files using YYYYMMDD - HHMMSS naming convention. But scratching my head about a combination: I think I tried every combination with toggling on/off for Location and RegEx. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hi, the problem is with the space between the path and regex query. In regex mode, spaces are treated literally and not as a logical AND. So you are basically searching for files which start with "Retail", followed by a space, then eight digits, and so on. So what you want to do instead is: If you want to search within a subfolders of
|
Beta Was this translation helpful? Give feedback.
-
Never underestimate the power of path:/to/desired |
Beta Was this translation helpful? Give feedback.
Hi, the problem is with the space between the path and regex query. In regex mode, spaces are treated literally and not as a logical AND. So you are basically searching for files which start with "Retail", followed by a space, then eight digits, and so on.
So what you want to do instead is:
If you want to search within a subfolders of
/home/user/folderX/folderY
:1 Disable regex mode
2. Disable search in path mode
3. Use the following query:
path:/home/user/folderX/folderY regex:"\d{8} - \d{6}"
or
If you want to search only within
/home/user/folderX/folderY
:/home/user/folderX/folderY/\d{8} - \d{6}
There ar…