- バックアップ一覧
- 差分 を表示
- ソース を表示
- バックアップ を表示
- Golang/regexp - 正規表現 へ行く。
- 1 (2014-07-18 (金) 18:16:16)
- 追加された行はこの色です。
- 削除された行はこの色です。
* 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