title: Validate Pattern on Array Parameter
body: <p>I have a script that accepts one or more subdomains, I want to validate them but <code>[ValidatePattern()]</code> seems to only check the first item in the array.</p>
  
  <p>The code:</p>
  
  <pre><code>param(
      [ValidatePattern('\w*\.domain\.com')][string]$subdomain
  )
  </code></pre>
  
  <p>This input gets accepted:</p>
  
  <pre><code>.\script.ps1 -subdomain "test.domain.com", "randomstring"
  </code></pre>
  
  <p>Is there a way to validate every entry in the array?</p>