yyyyyyyyyyyyyyyyyyyy

博客园 首页 新随笔 联系 订阅 管理

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

1.获取双引号中的字符

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

 

2.用字符串建立标签

如 hello  <hello></hello>

 

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

 

posted on 2017-07-01 20:23  xxxxxxxx1x2xxxxxxx  阅读(430)  评论(0编辑  收藏  举报