title: How can I replace various parts of a string in the same line?
body: <p>I have these string:</p>
  
  <pre><code>Database_123456.bak
  </code></pre>
  
  <p>I need to take only the number:</p>
  
  <pre><code>123456
  </code></pre>
  
  <p>I do this:</p>
  
  <pre><code> Dim number As String = Replace("Database_123456.bak", "Database", "")
  </code></pre>
  
  <p>This return me:</p>
  
  <pre><code>123456.bak
  </code></pre>
  
  <p>And I have to add another variable to replace again the last part:</p>
  
  <pre><code>Dim FinalNumber as string = Replace(number, ".bak", "")
  </code></pre>
  
  <p>Is there any way to replace the two parts in the same line, to abbreviate?</p>
  
  <p>thanks</p>