title: PowerShell Regex get substring between 2 strings
body: <p>I am trying to get a substring from a string using powershell. I want to get the string between "=%7B" and "%"</p>
  
  <pre><code>my string = "onething=%7BABCDEFGHIJKLM%something=%7BNOPQRSTUVWXYZ%"
  </code></pre>
  
  <p>I used the regex <code>\=%7B([^%]+)\%</code> and was able to  get</p>
  
  <p><code>"=%7BABCDEFGHIJKLM%"</code> and <code>"=%7BNOPQRSTUVWXYZ%"</code> </p>
  
  <p>but not the value that is inside the 2 strings. How is this done?</p>
  
  <p>Thanks</p>