title: powershell regex remove digit
body: <p>Using Powershell, I'm trying to remove leading zeros of the numeric part of a string.  Here are a couple of examples and expected results:</p>
  
  <p>AB012 needs to become AB12</p>
  
  <p>ABC010 needs to become ABC10</p>
  
  <p>I've tried the following, but it gets rid of all zeros.  How can I tell it to only remove the leading zeros?  The format of the string will always be letters followed by numbers.  However, the length of the letters may vary.</p>
  
  <pre><code>$x = ABC010
  $y = $x -replace '[0]'
  $y
  </code></pre>
  
  <p>This will display ABC1, and I wish to display ABC10.</p>
  
  <p>Thanks.</p>