vim 正则表达式获取双引号中的字符

vim 正则表达式获取双引号中的字符

1.获取双引号中的字符

[html] view plain copy
 
  1. :%s/.*".".*/1/  

2.用字符串建立标签

如 hello  <hello></hello>

[html] view plain copy
 
  1. :%s/[az,AZ]/<1></1>/  

原文地址:https://www.cnblogs.com/timssd/p/7103380.html