More than 9 backreferences in gsub()

后端 未结 6 1617
温柔的废话
温柔的废话 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:19

    According to this site, back references \10 to \99 works on some languages, but not most.

    Those that are reported to work are

    • JGSoft
    • Python
    • PHP preg
    • REAL basic

提交回复
热议问题