title: Getting the page title from a scraped webpage
body: <pre><code>var http = require('http');
  var urlOpts = {host: 'www.nodejs.org', path: '/', port: '80'};
  http.get(urlOpts, function (response) {
  response.on('data', function (chunk) {
  var str=chunk.toString();
  var re = new RegExp("(&lt;\s*title[^&gt;]*&gt;(.+?)&lt;\s*/\s*title)\&gt;", "g")
  console.log(str.match(re));
  });
  
  });
  </code></pre>
  
  <p>Output</p>
  
  <blockquote>
    <p>user@dev ~ $ node app.js [ 'node.js' ] null null</p>
  </blockquote>
  
  <p>I only need to get the title.</p>