我有快捷方式創建getter方法,這裏是我的代碼片段現在: public function get${1:PropertyName}() {
return \$this->${1:propertyName};
}
$0
輸出我在尋找: public function getAreaCode() {
return $this->areaCode;
}
所以現在的問題
我需要一種方法使用正則表達式來搜索文本,並找到乳膠命令內部的詞,多數民衆贊成(這意味着它的花括號內) 這裏是例子: 現在 Tarzan is my name and everyone knows that {Tarzan loves Jane}
如果搜索正則表達式:({[^{}]*?)(Tarzan)([^}]*})與$1T~a~r~z~a~n$3 更換這將取代只有兩個字泰山花括號內,而忽略其