How to use regular expressions to batch copy and modify strings in vim
ringa_lee
ringa_lee 2017-05-16 16:42:57
0
1
1129

Perform batch replacement through vim and generate a script indicating the changes, for example:
aaa_table1 -> alter table aaa_table1 rename bbb_table1
aaa_table2 -> alter table aaa_table2 rename bbb_table2
aaa_table3 -> alter table aaa_table3 rename bbb_table3
.....

ringa_lee
ringa_lee

ringa_lee

reply all(1)
刘奇

Using group ("(...)") in vim to implement.
:%s/aaa_(.*)/alter table aaa_1 rename bbb_1/g

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!