Skip to content
Prev 198818 / 398502 Next

Regular expression substitution ...

I would like to replace all occurences of

    /pc

with

   \%

using something like

sub("/pc", "\%", x)

but I am unable to make the '\' pass through.

Any hint?

Thanks,

Roberto