title: Matching any amount of words regular expression
body: <p>I'm trying to capture a line with n-number of words that follow a title sequence in PHP, but I cannot capture anything more than the first word. Here are the contents of the file that I am trying to match:</p>
  
  <pre><code>Name: test
  Caption: test test test test
  </code></pre>
  
  <p>And here is the regular expression code and results...</p>
  
  <pre><code>preg_match_all('/([A-z]+:)\s*(\w+)[\r|\r\n|\n]*/', $contents, $array);
  </code></pre>
  
  <p>Results: </p>
  
  <pre><code>array(3) { 
      [0]=&gt; array(2) { 
          [0]=&gt; string(11) "Name: test " 
          [1]=&gt; string(14) "Caption: test " 
      } 
  
      [1]=&gt; array(2) { 
          [0]=&gt; string(5) "Name:" 
          [1]=&gt; string(8) "Caption:" 
      } 
  
      [2]=&gt; array(2) { 
         [0]=&gt; string(4) "test" 
         [1]=&gt; string(4) "test" 
      } 
    }
  </code></pre>
  
  <p>Any help would be greatly appreciated.</p>