I’m using Notepad++
and trying to work through a log file locally and trying to use the regex function to extract any data from the file which contains:
-1 or ?
I’m not great with the reg expressions but figured something like this would do the trick but to no avail:
^.*\b(-1|?)\b.*$
As you can read here:
How do you use Notepad++ regex pipe | for strings longer than one character?
Notepad++ doesn’t support pipe ‘|’ character in its regexes in the versions lower than 6.1.1. Update your version of notepad++ and use regex: