title: PHP preg_match regex to find letters numbers and spaces?
body: <p>When people sign up to my site I validate their names with this code:</p>
  
  <pre><code>if (preg_match("[\W]", $name))
  {
      $mess = $mess . "Your name must contain letters only.&lt;br&gt;";
      $status = "NOTOK";
  }
  </code></pre>
  
  <p>This is because your actual name cannot contain symbols unless your parents were drunk when they named you.</p>
  
  <p>However, this regex doesn't detect spaces. How can I fix it?</p>