alter regex to accept phone number with or without spaces
<p>I have the regex to validate uk phone numbers but it is currently forcing the user to input a space before it will accept the number how do I alter it to make it accept numbers with or without spaces.</p>

<pre><code> /^0\d{2,4}[ -]{1}[\d]{3}[\d -]{1}[\d -]{1}[\d]{1,4}$/
</code></pre>
