- 追加された行はこの色です。
- 削除された行はこの色です。
- Golang/regexp - 正規表現 へ行く。
- Golang/regexp - 正規表現 の差分を削除
* regexp - 正規表現 [#u71a395d] ** メソッドの構成 [#k454bf7b] Find(All)?(String)?(Submatch)?(Index)? ** 複数行 - mフラグ [#o05dae33] text := ` abc1 xyz2` re := regexp.MustCompile(`(?m)^ (.+)$`) text = re.ReplaceAllString(text, "[$1]") fmt.Println("DEBUG:" + text) DEBUG:[abc1] [xyz2] ** 参考 [#i445962d] - http://golang.org/pkg/regexp/ - http://swtch.com/~rsc/regexp/regexp3.html