php extract standalone numbers from a line : <p>I want to extract standalone numbers from this line</p>

<pre><code>4000123456789000/01/20/202/sssss/500 address/400 city/366
</code></pre>

<p>to have this result</p>

<pre><code>4000123456789000/01/20/202/366
</code></pre>

<p>the problem that the codes gives me this result</p>

<pre><code>4000123456789000/01/20/202/500/400/366
</code></pre>

<p>I don't want the numbers which have the text along with it and I don't want to remove the delimiter </p>
