How do you use Notepad++ regex pipe | for strings longer than one character?

后端 未结 5 2295
不知归路
不知归路 2020-12-18 18:54

I\'m trying to get notepad++ to regex find all instances of \"abc\" and \"def\" in the following sentence:

The abc went to the def.

5条回答
  •  梦毁少年i
    2020-12-18 19:45

    I was having the same problem, which is how I landed here. Since it's a notepad++ deficiency, we can make do by using Powershell. In your case, simply run a Select-String:

    `ss abc,def filename`
    

    If on Unix then you have other tools like grep of course.

    I recognize you wanted a solution for notepad++, and so do I, but sometimes you have to make do.

提交回复
热议问题