1, Eclipse ctrl+f to open the search box
2, select Regular expressions (regular expressions)
remove /* */(eclipse) /\*(.|[\r\n])*?\*/
remove//(eclipse ) //.*$
remove import(eclipse) import.*$
remove blank line(eclipse) ^\s*\n
remove blank line(ue) %[ ^t]++^p
2, select Regular expressions (regular expressions)
remove /* */(eclipse) /\*(.|[\r\n])*?\*/
remove//(eclipse ) //.*$
remove import(eclipse) import.*$
remove blank line(eclipse) ^\s*\n
remove blank line(ue) %[ ^t]++^p
把 <html.*property=/"([a-zA-Z/_]+)/".*/>
替换成 <c:out value=/"/$/{af.map.$1/}/" />
替换成 <c:out value=/"/$/{af.map.$1/}/" />
^hello starts with hello
hello$ ends with hello
Match strings ending with </title>:
.*? </title>
Match strings starting with <title>:
<title> .*
Match strings starting with <title> and ending with </title>:
<title > .*? </title>
.*? </title>
Match strings starting with <title>:
<title> .*
Match strings starting with <title> and ending with </title>:
<title > .*? </title>
---------------------------------------------------------------------------------
Replacing the author's regex in java
^ \* @author .*$