Put a line break before numeric character in string with php
<p>I have strings like this:</p>

<pre><code>123 qwerty 6 foo bar 55 bar
</code></pre>

<p>I need to make it like this</p>

<pre><code>123 qwerty
6 foo bar
55 bar
</code></pre>

<p>How to make it?</p>

<p><strong>UPD:</strong>
I tried make it</p>

<pre><code>$subject = "123 qwerty 6 foo 55 bar";
$pattern = '/[^0-9]/';
preg_match($pattern, substr($subject,3), $matches, PREG_OFFSET_CAPTURE);
echo "&lt;pre&gt;";
print_r($matches);
</code></pre>

<p>But it is no working for me.</p>
