[Tool usage] How does Notepad++ use regular expressions to search for multiple strings at the same time

1. Introduction

When debugging the code and locating the problem, because there are many log prints, it is necessary to use the NotePad++ text editor to search, and it is necessary to search for multiple strings at the same time. This article introduces how to search for multiple strings at the same time for reference.

Two, operation steps

2.1 Search settings

Use the shortcut key "Ctrl + F" to search, and check the regular expression option:
insert image description here

2.2 Enter the string to be searched

Enter "Messages|File Name" and use "|" to separate the strings:
insert image description here
the search results are as follows, and you can see that both strings are included in the search results:
insert image description here

Three, summary

This article introduces how to use NotePad++'s regular expression to search for multiple strings, for reference.

Guess you like

Origin blog.csdn.net/xuxu_123_/article/details/131561434