title: Perl parsing white space char at end of string
body: <pre><code>MMAPI_CLOCK_OUTPUTS = 1,        /*clock outputs system*/
  </code></pre>
  
  <p>parsing the above with this:</p>
  
  <pre><code>$TheLine =~ /\s*(.*)\s*=\s*(.*),\s*\/\*(.*)\*\//)
  </code></pre>
  
  <p>The variable <code>$1</code> contains white space at the end, e.g. we have <code>"MMAPI_CLOCK_OUTPUTS "</code> and not <code>"MMAPI_CLOCK_OUTPUTS"</code>. Why are those spaces captured as well? I thought they should have be removed with the parser code</p>