I have a string myFunction(arg1=\"hop\",arg2=TRUE)
. I want to isolate what is in between quotes (\"hop\"
in this example)
I have tried so far with no success:
gsub(pattern="(myFunction)(\\({1}))(.*)(\\\"{1}.*\\\"{1})(.*)(\\){1})",replacement="//4",x="myFunction(arg1=\"hop\",arg2=TRUE)")
Any help by a regex guru would be welcome!