I need to transform strings like 333bis
into 33300
, so I set up a regex pattern like (d{3})(bis)
, but I can’t use 100
as substitute pattern, because it will be interpreted as “group 100”. The correct way to do it in python would be g<1>00
, but I would like to know if there is an equivalent for an R function like gsub
.