Eclipse usage skills --- use regular expressions to find and replace

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
 
 
把 <html.*property=/"([a-zA-Z/_]+)/".*/>
替换成 <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> 

---------------------------------------------------------------------------------

Replacing the author's regex in java

^ \* @author .*$

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326027763&siteId=291194637