Last active
November 6, 2017 07:16
-
-
Save ymtky/24fdc4bac3c918783fd8f4b0c1b9a5d7 to your computer and use it in GitHub Desktop.
vim置換正規表現メモ
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\数値で正規表現にマッチした文字列を参照する | |
:%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