title: Get the value after = in a given string in Powershell using Regular expression
body: <p>I have a string as given below</p>
  
  <pre><code>$string1 = "PTSKKV = 3.5  PTSPK = 4.6"
  </code></pre>
  
  <p>I tried to write a regular expression for getting the value 3.5 if i provide "PTSKKV" and 4.6 if i provide "PTSPK" as given below</p>
  
  <pre><code>[System.Text.RegularExpressions.Regex]::Matches($string1 , "(?&lt;=PTSKKV\s*=\s*)[^\s]+").Value
  [System.Text.RegularExpressions.Regex]::Matches($string1 , "(?&lt;=PTSPK\s*=\s*)[^\s]+").Value
  </code></pre>
  
  <p>But unfortunalely iam getting null value from above command.What went wrong for me?</p>