How can I do a search that results including/highlights the file name, the folder and the HDD name?
-
Hello!
I have created a Notepad++ file with 452036 lines (36,1 MB) of textfiles, from HDD directories, folders and files.
Folders have this in folder name --=[ (any letters, numbers following)
Drives have their names like this [ A ] [ WD-1 ] etc.
Here some screendumps of HDD and folders.

The directories are in 5 levels of subdirectories.
Each HDD is named [ A ] [ B ] or [ WD-1] [ WD-2 ] etc. and file names, like filename.jpg, filename.txt etc.
Doing a normal search I can find the folder, files or HDD drive name, but not listed together in the same search.How can I do a search that results will include and highlights the file name, the folder and the HDD name [ WD-1 ] [ WD-2 ]?
So if I do a search like this:
filename
I would like to get the result that includes
filename, folder and in what [ ] HDD drive the file and folder sits.I don’t know if this can be done but it would be of great help if it could.
As of now I have to scroll forever to find the right HDD…Thanks and best regards,
pellelin -
Your vague descriptions of text don’t make it clear to me what your text is actually like.
Could you use the ``` notation (from the
</>button on the post toolbar) to put some example text? Like``` [ A ] blah blah blah filename blah blah [ B ] blah blah blah notsamefile blah blah [ WD-40 ] is good for cleaning hardware ```which will render like
[ A ] blah blah blah filename blah blah [ B ] blah blah blah notsamefile blah blah [ WD-40 ] is good for cleaning hardwareIn the mean time, assuming you wanted to highlight the entire line that includes specific
filename, it could be done with:- FIND =
(?-s)^.*filename.*$ - SEARCH MODE = Regular Expression
If you actually only want to highlight part of each line, you’re going to have to give example text that reasonably matches your actual data, and then do a screenshot showing which you’d like to highlight given a specific search example.
- FIND =
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login