title: Regex validate string if it does not contain list of special character and allowed special character followed by alphanumeric
body: <p>I am trying to validate string that </p>
  
  <ol>
  <li>don’t allow these characters at all:  ! @ # $ % ^ &amp; * | \ [ ] { } ? > &lt; ” ’ ; :</li>
  <li>allow the following only if regular characters are also present:  . , + = _ -</li>
  </ol>
  
  <p>This is what I tried so far but it is not validating the second condition that validate allowed character if alphanumeric characters are also exists in the string</p>
  
  <pre><code>([^\!\@\#\$%\^&amp;\*\|\\[\]\{\}\?\&gt;\&lt;”\’\;\:]|([\.\,\+\=\_\-A-Za-z0-9]))
  </code></pre>
  
  <p>Test - <a href="https://regex101.com/r/u6osVm/2" rel="nofollow noreferrer">https://regex101.com/r/u6osVm/2</a></p>