title: Extract string after a symbol in Perl
body: <p>How can I extract string after a symbol in Perl?</p>
  
  <p>I tried doing some searches but even the code I found didn't work.</p>
  
  <p>I'm trying to extract the string after a colon. So I want to show everything after the colon.</p>
  
  <p>Example:</p>
  
  <pre><code>string = day1: string over here
  
  substring = string over here
  </code></pre>
  
  <p>So far I have tried:</p>
  
  <pre><code>$substring = $string=~ /(\:.*)\s*$/;
  </code></pre>
  
  <p>But it only outputs the number 1 over and over.</p>