More than 9 backreferences in gsub()

后端 未结 6 1656
温柔的废话
温柔的废话 2021-02-20 06:01

How to use gsub with more than 9 backreferences? I would expect the output in the example below to be \"e, g, i, j, o\".

> test <- \"abcdefghijklmnop\"
&g         


        
6条回答
  •  [愿得一人]
    2021-02-20 06:32

    It was my understanding that \10 would we understood as backreference 0 followed by a digit of 1. I think 9 is the max.

提交回复
热议问题