Regex Validation in Laravel 5.2
<p><strong>Below is my rule for password:</strong></p>

<pre><code>return [
    'Password'                  =&gt; 'required|min:8|max:100|regex:[a-z{1}[A-Z]{1}[0-9]{1}]',
    'Password_confirmation'     =&gt; 'required|min:8|max:100|regex:[a-z{1}[A-Z]{1}[0-9]{1}]',
];
</code></pre>

<p>I am trying to add the rule such that it must have</p>

<blockquote>
  <ol>
  <li>atleast one small char </li>
  <li>atleast one big char </li>
  <li>atleast one number</li>
  <li>atleast one special char</li>
  <li>min 8 chars</li>
  </ol>
</blockquote>

<p>I tried this and it works <code>required|confirmed|min:8|max:100|regex:/^[\w]{1,}[\W]{1,}$/</code>, on a <strong>regex tester software</strong> . but not sure why it does not work in <strong>Laravel</strong></p>

<p>Am I missing something ?</p>