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

藏色散人
Release: 2021-01-11 15:12:03
forward
6239 people have browsed it

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
Copy after login

Use the following regular expression to match

^(.*)34(.*)$
Copy after login

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
Copy after login

Remove multi-line comments

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

does not match Lines containing hehe characters

^((?!hehe).)*$
Copy after login

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!

Related labels:
source:csdn.net
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Issues
Why is my hosts notepad blank?
From 1970-01-01 08:00:00
0
0
0
Teacher Notepad++ how to make prompt code
From 1970-01-01 08:00:00
0
0
0
Notepad++ will not use
From 1970-01-01 08:00:00
0
0
0
The contents of hosts notepad are incorrect
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template