Capture number between two whitespaces (RegEx)
<p>I have the following data:</p>

<pre><code>SOMEDATA .test 01/45/12 2.50 THIS IS DATA
</code></pre>

<p>and I want to extract the number 2.50 out of this. I have managed to do this with the following RegEx:</p>

<pre><code>(?&lt;=\d{2}\/\d{2}\/\d{2} )\d+.\d+ 
</code></pre>

<p>However that doesn't work for input like this:</p>

<pre><code>SOMEDATA .test 01/45/12 2500 THIS IS DATA
</code></pre>

<p>In this case, I want to extract the number 2500.</p>

<p>I can't seem to figure out a regex rule for that. Is there a way to extract something between two spaces ? So extract the text/number after the date until the next whitespace ? All I know is that the date will always have the same format and there will always be a space after the text and then a space after the number I want to extract. </p>

<p>Can someone help me out on this ? </p>