title: powershell wildcard matching/regex
body: <p>I have the following code below I have to get down to under 260 characters.
  I had another post like this before and a powershell wizard came through and introduced me to wildcard matching, and although I spent hours studying what he did I can not figure out how to replicate the dark magic. Would someone be so kind to inform me. I have scoured the internet for reference and have failed on that front as well.</p>
  <pre><code>(netsh wlan show profiles) | sls &quot;\:(.+)$&quot; | %{$n=$_.Matches.Groups[1].Value.Trim(); $_} | %{(netsh wlan show profile name=&quot;$n&quot; key=clear)}  | sls &quot;Key Content\W+\:(.+)$&quot; | %{$p=$_.Matches.Groups[1].Value.Trim(); $_} | %{[PSCustomObject]@{ ssid=$n;pass=$p }}
  </code></pre>
  <p>This is the example the wizard showed me. My code above this needs to use the same technique to shorten it even further.</p>
  <p>this:
  <code>Add-Type -AssemblyName System.Windows.Forms</code></p>
  <p>to:</p>
  <p><code>Add-Type -AssemblyName *m.W*s.F*s</code></p>