Home >Development Tools >notepad >notepad++ how to match lines match lines containing specific characters or empty lines

notepad++ how to match lines match lines containing specific characters or empty lines

藏色散人
藏色散人forward
2021-01-11 15:12:036212browse

The following is the tutorial column of notepad to introduce notepad matching lines to match lines containing specific characters or blank lines. I hope it will be helpful to friends in need!

notepad++ how to match lines match lines containing specific characters or empty lines

For example, there are the following characters in a line:

12q34m56

Use the following regular expression to match

^(.*)34(.*)$

Use the following regular rules to match blank lines, one of which must be available. If it is invalid, you can restart notepad

^(\s*)\r\n
^(\s*)\n
^(\s*)\r\n

Remove multi-line comments

/\*(.|[\r\n])*?\*/

does not match Lines containing hehe characters

^((?!hehe).)*$

The above is the detailed content of notepad++ how to match lines match lines containing specific characters or empty lines. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:csdn.net. If there is any infringement, please contact admin@php.cn delete