-
-
Save nikuyoshi/bf31dc46544e9645fc23 to your computer and use it in GitHub Desktop.
Vimの正規表現を使用してグループ毎に置換する方法 ref: http://qiita.com/nikuyoshi/items/3e053550ebe7ee732e71
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/\(.*\)=\(.*\)/hashMap.put("\1", "\2");/g |
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
status=ステータス | |
dataList=データ一覧 | |
deptid=ユーザの組織ID | |
userid=ユーザID | |
updateDate=更新日時 |
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
hashMap.put("status", "ステータス"); | |
hashMap.put("dataList", "データ一覧"); | |
hashMap.put("deptid", "ユーザの組織ID"); | |
hashMap.put("userid", "ユーザID"); | |
hashMap.put("updateDate", "更新日時"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment