Skip to content
Prev 315373 / 398503 Next

Regular expression

Hello again,

I am having a problem on Regular expression. Let say I have following code:
[1] "asdf"


This is perfect. However I am having problem if I include "" (i.e. the
double quote) in the first argument as the pattern search:
Error: unexpected ']' in "gsub("[',"]"


What is the right way to include the 'double quote' in the search field?

Thanks for your help.