The following is the tutorial column ofnotepadto introduce notepad matching lines to match lines containing specific characters or blank lines. I hope it will be helpful to friends in need!
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!