title: Perl get text between tags
body: <p>I tried so many codes that I found on internet but none of them would work.</p>
  
  <p>I have a HTML code something like this.</p>
  
  <pre><code>&lt;div class="usernameHolder"&gt;Username: user123&lt;/div&gt;
  </code></pre>
  
  <p>what I want is get the text user123 from this line of code, of course this code is with the rest of the HTML content (an HTML page) Can anyone point me to the right direction?</p>
  
  <pre><code>$text = @source=~ /Username:\s+(.*)\s+&lt;/;
  print $text;
  </code></pre>
  
  <p>but it won't return anything.</p>