title: R regex store variables?
body: <p>Is it possible to use stored variables in R's regex?</p>
  
  <p>For example I want to remove quotes around decimal numbers in the following string <code>s = "\"Bob\",\"1\",\"Mary\",\"2\""</code> - in most languages you could do something like <code>sub("\"(\d)\"","$1",s)</code> but I cannot seem to find the capability in R. Any help would be greatly appreciated.</p>
  
  <p>Also as a side question does R have the <code>\d</code> support? (it throws an error when i try it) Thanks</p>