title: Java regex contained within
body: <p>How can I write a regex to see if a certain string is contained within two characters.</p>
  
  <p>For example, I want to see which part of the string is contained within a quotation mark.</p>
  
  <pre><code>Java"_virtual_"machine
  </code></pre>
  
  <p>If I run my regex through this, I want to get <code>_virtual_</code></p>
  
  <p>How can I achieve this using regexes?</p>