title: regex to convert 010v-s001v to 10v-s1v
body: <p>I'm looking for a Regex that removes the leading zeros at the beginning and after <code>-s</code> eg. converts <code>010v-s001v</code> to <code>10v-s1v</code>.</p>
  
  <pre><code>010v-s001v =&gt; 10v-s1v
  0100v-s001v =&gt; 100v-s1v
  018v-s001v =&gt; 18v-s1v
  018v-s001r =&gt; 18v-s1r
  018r-s002v =&gt; 18r-s2v
  020v_001 =&gt; 20v_001
  </code></pre>
  
  <p>My attempt: <code>(0*)([1-9]{0,4}[vr]?)((-s)?+([0]{0,2}))?+([1-9][vr])?</code></p>
  
  <p>But this adds <code>-s00</code> to the string: 10v-s001v => 10v-s00-s1v</p>
  
  <p><a href="https://regex101.com/r/2go5KO/2" rel="nofollow noreferrer">https://regex101.com/r/2go5KO/2</a></p>