gsub

 gsub("([ab])", "\\1_\\1_", "abc and ABC")
[1] "a_a_b_b_c a_a_nd ABC"get

分析:在后边查找a或b,查找到对每一个字母后边加_file

相关文章
相关标签/搜索