title: Regular expression to extract text from a string in html format
body: <p>I am currently getting response error in html format. It is of type string.</p>
  
  <pre><code>"&lt;!DOCTYPE html&gt;\r\n
  &lt;html&gt;
    &lt;head&gt;
      &lt;title&gt;Data already exists&lt;/title&gt;
    &lt;/head&gt;
  &lt;/html&gt;"
  </code></pre>
  
  <p>I wanted to retrieve the content inside the <code>&lt;title&gt;</code>, for above instance "Data already exists". Can anybody suggest a appropriate regular expression to capture that text.</p>
  
  <p>Please any help is appreciated!</p>