Python Regular expression to end of line
<p>Bit frustrated that I can't work this out but I want to define a regular expression that selects an unknown amount of words (some spaced, some incorporating numbers, some underscored).</p>

<p>When I say 'unknown amount of words' I'm happy to limit it to 10, if that's more realistic.
Basically I'm scanning file names and don't suspect there are any longer than 10 words, but it would be nice not to have to set a limit.</p>

<p>The best I have so far is:</p>

<pre><code>tc = re.findall(r'FROM CLIP NAME:\s\s(\w*\s*\w*\s*\w*\s*\w*\s*\w*\s*\w*\s*\w*\s*\w*\s*\w*\s*\w*)', text)
</code></pre>

<p>Where 'FROM CLIP NAME:\s\s' will be at the beginning of each line.</p>

<p>My attempt above is a complete fail as \s reads line breaks as well as spaces and so also grabs data from the next line.</p>
