title: Read a string of alphanumeric characters after a ;
body: <p>I'm teaching myself perl so I'm pretty new to this language. I've been reading over and over about regular expression but I can't figure out the right context. I want to do the following:</p>
  
  <p>Let say I have a file name "testfile" 
   this files contains 3 lines, </p>
  
  <pre><code>test this is the first line
  test: this is the first line
  test; this is the third line
  </code></pre>
  
  <p>How can I read and print out only the third one and everything after the <code>;</code> without the space. so basically "This is the third line"</p>
  
  <p>This is what I'm thinking to do <code>$string =~ m/this is the third/</code></p>
  
  <p>This was edited incorrectly. In the first and second sentence there should a space before the test.in the third one shouldn't. So I want to skip the white space. </p>