title: Matching a space in regex
body: <p>How can I match a space character in a PHP regular expression?</p>
  <p>I mean like &quot;gavin schulz&quot;, the space in between the two words. I am using a regular expression to make sure that I only allow letters, number and a space. But I'm not sure how to find the space. This is what I have right now:</p>
  <pre><code>$newtag = preg_replace(&quot;/[^a-zA-Z0-9s|]/&quot;, &quot;&quot;, $tag);
  </code></pre>