title: Selecting strings in between two sets of characters in PowerShell
body: <p>I need to select a string between two sets of characters in PowerShell and could use some help. I have some csv data and one of the columns contains a string that I need to select a portion of to populate two other columns. I've got one of these done but need help with the other 
  This is what my text looks like:</p>
  
  <pre><code>My-Computer-IneedthisABC1234567
  YourComputer-IneedthistooABC9876543
  </code></pre>
  
  <p>Basically I need the numerical portion and the <code>ABC</code> portion will always be the same so I'm retrieving with the number with the following:</p>
  
  <pre><code>($Computer.nickname -split "ABC")[0] 
  </code></pre>
  
  <p>I'm stuck on how to retrieve the <code>Ineedthis</code>and <code>Ineedthistoo</code> part. It will always come in between  <code>-</code> and <code>ABC</code></p>
  
  <p>I suspect a Regex is the way to go with this but I'm just not sure where to start with that.</p>