[string] Removing certain characters from a string in R

I have a string in R which contains a large amount of words. When viewing the string I get a large amount of text which includes text similar to the following:

>docs

....

\u009cYes yes for ever for ever the boys cried in their ringing voices with softened faces

....

So I'm wondering how to remove these \u009 characters (all of them, some of which have slightly different numbers) from the string. I've tried using gsub(), but that wasn't effective in removing the content from the strings.

This question is related to string r

The answer is


try: gsub('\\$', '', '$5.00$')