2013-08-01 29 views

回答

4

您必須瞭解$ n是指捕獲組編號n。既然你不能在你的搜索模式捕獲組做,羣號碼1不存在:

必須使用捕捉括號來定義一組,例如:

search: (<header) 
replace: $1 class="bold" 

又如:

search: (<)(header) 
replace: $1$2 class="bold" 

提示:$0是指整個比賽(沒有定義任何捕獲組)。然後你可以這樣寫:

search: <header 
replace: $0 class="bold" 
+0

你救了我幾個小時!謝謝 – redDevil

相關問題