title: Ruby on rails string parsing
body: <p>I have a string that is a bunch of XML tags.</p>
  
  <p>Basically there is the contents to one tag I want and ignore everything else:</p>
  
  <p>The input would look like:</p>
  
  <pre><code>&lt;Some&gt;&lt;XML&gt;&lt;stuff&gt;
  &lt;title type='text'&gt;key&lt;/title&gt;
  &lt;Some&gt;&lt;other&gt;&lt;XML&gt;&lt;stuff&gt;
  </code></pre>
  
  <p>The output would look like:</p>
  
  <pre><code>key
  </code></pre>
  
  <p>I'm not sure if XML is appropriate since there doesn't seem very much structure to this particular XML.</p>
  
  <p>Can regex do this in RoR or is it more of just a pattern matching thing (true or false) in ruby on rails?</p>
  
  <p>Thanks so much!</p>
  
  <p>Cheers,
  Zigu</p>