title: Extract info inside all parenthesis in R
body: <p>I have a character string and what to extract the information inside of multiple parentheses.  Currently I can extract the information from the last parenthesis with the code below.  How would I do it so it extracts multiple parentheses and returns as a vector? </p>
  
  <pre><code>j &lt;- "What kind of cheese isn't your cheese? (wonder) Nacho cheese! (groan) (Laugh)"                                                          
  sub("\\).*", "", sub(".*\\(", "", j)) 
  </code></pre>
  
  <p>Current output is:</p>
  
  <pre><code>[1] "Laugh"
  </code></pre>
  
  <p>Desired output is:</p>
  
  <pre><code>[1] "wonder" "groan"  "Laugh" 
  </code></pre>