title: Extract Version Number from String
body: <p>Using the following PowerShell command,</p>
  
  <pre><code>Get-ItemProperty HKLM:\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\* |
    Select-Object DisplayName, DisplayVersion |
    Select-String 'Application Name'
  </code></pre>
  
  <p>I get an output like this:</p>
  
  <pre class="lang-none prettyprint-override"><code>@{DisplayName=Application Name; DisplayVersion=52.4.1521}
  </code></pre>
  
  <p>If this was on Unix, I could probably figure out a <code>sed</code> or <code>awk</code> command to extract the version number, but on Windows I don't even know where to begin. How do I get that version number out as the value of a variable?</p>