title: Store and Use Regex Const Validator in Angular 8 Reactive Formbuilder
body: <p>How do I store a Regex Validator pattern for reuse and Dry principal in Angular?
  Have a reactive formbuilder with Regex validator pattern below for ZipCode.</p>
  
  <p>Need to apply to multiple address forms, curious how to save <code>/^\d{1,5}$/</code></p>
  
  <p>So we can write <code>Validators.pattern(zipcode)</code>,  or any syntax utilized in Angular?
  Company has more complicated long patterns for phone numbers, customer number, etc.</p>
  
  <pre><code>'ZipCode': [null, [Validators.maxLength(16), Validators.pattern(/^\d{1,5}$/)]],
  </code></pre>
  
  <p>Looking for a way to store and utilize maybe in constants.</p>
  
  <p>This is for Angular 2:</p>
  
  <p><a href="https://stackoverflow.com/questions/36725828/ng-pattern-to-use-regex-from-angular-constants">ng-pattern to use regex from angular constants</a></p>