Skip to content
Prev 315374 / 398503 Next

Regular expression

The 'search field' is a string and to put a double quote into a double-quote
delimited string you need to escape it with a backslash so it is not
interpreted as the ending quote on the string.
   > gsub("[',\"]", "", "'asd'f")
  [1] "asdf"

Bill Dunlap
Spotfire, TIBCO Software
wdunlap tibco.com