I need to replace a string of characters with a sequence; I am using the gsub method
Say,
name = "Tom"
and this appears in a text as $(name) i need to replace $(name) with Tom.
Now, it is replacing only name with Tom and not $(name) with Tom. Can you tell me how the gsub will be like.
nameand not$(name)?