title: PHP Regex / Yii2 Pattern allow alphabet, numeric, space and some symbol / special character
body: <p>I've a text field for Job Position in my form, and I need to add validation like this:</p>
  
  <ol>
  <li><p>Deny symbol exc: <code>-</code>, <code>,</code>, <code>.</code>, and <code>/</code></p></li>
  <li><p>Allow alphabet, numeric, and space</p></li>
  </ol>
  
  <p>I've add like this in <strong>modal.php</strong> </p>
  
  <pre><code>'pattern' =&gt; '/^[a-zA-Z.,-]+(?:\s[a-zA-Z.,-]+)*$/'
  </code></pre>
  
  <p>It's almost work well, it's reject <code>/</code> and numeric.</p>
  
  <p>Anyone can fix my pattern above, so it can work like my requierments above.</p>
  
  <p>Thanks</p>