Searching multiple files for multiple words

前端 未结 2 581
不思量自难忘°
不思量自难忘° 2020-12-25 11:48

I have to search trough a huge amount of .txt files. I know I can do multiple words search, but here\'s my problem. I want my results to only be the .txt<

2条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-25 12:17

    If you are using Notepad++ editor (like the tag of the question suggests), you can use the great "Find in Files" functionality.

    Go to Search > Find in Files (Ctrl+Shift+F for the keyboard addicted) and enter:

    • Find What = (test1|test2)
    • Filters = *.txt
    • Directory = enter the path of the directory you want to search in. You can check Follow current doc. to have the path of the current file to be filled.
    • Search mode = Regular Expression

提交回复
热议问题