I am trying to execute the below code
library(purrr)
library(glue)
library(tidyquant)
gsub("https://abc.a/:x:/s/asd/esdfgy?=jo", " % s ", "This is the link https://abc.a/:x:/s/asd/esdfgy=jo")
[1] "This is the link % s "
Above execution is correct. But when I include ? in my text the output is different. Can i have a same output like above?
gsub("https://abc.a/:x:/s/asd/esdfgy?=jo", " % s ", "This is the link https://abc.a/:x:/s/asd/esdfgy?=jo")
[1] "This is the link https://abc.a/:x:/s/asd/esdfgy?=jo"
Expected output
[1] "This is the link % s "