title: RegEx JavaScript - the string cannot be all dots
body: <p>I'm trying to validate a filename string in Angular2 form.
  The filename string cannot be all dots and cannot contain this characters \ / ? * " : &lt; > |</p>
  
  <p>I solve the second requirement and my regex looks like this:</p>
  
  <pre><code>Validators.pattern('^[^\\\\:\*\?\"\&lt;\&gt;\|\/]+$')
  </code></pre>
  
  <p>but I'm not sure how to solve the dots requirement.</p>