title: Regex: extracting a value in a string <Name_id = bob>?
body: <p>What would be the correct regular expression (that I can use in Java) if I want to extract a value from the string below?</p>
  
  <pre><code>&lt;Name_id = bob&gt;
  </code></pre>
  
  <p>I know that <code>\&lt;(.*?)\&gt;</code> will extract everything between the angle brackets but I only need to extract "bob". </p>
  
  <p>The only part of the string that will change will be "bob". I also want to make sure that if someone enters <code>=bob</code> as the Name_id, the string that pulled out will be just that and doesn't mess up the regular expression. </p>