Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
vim置換正規表現メモ
\数値で正規表現にマッチした文字列を参照する
:%s/hogehoge: \(\"[^\"]*\"\)/hugahuga: \1
改行を挿入する時は\r
:%s/\(hogehoge: \"[^\"]*\"\)/\1\r
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.