title: Replace integers in a string using Visual Basic
body: <p>I am trying to replace integers in a string using Visual Basic and can't seem to get it just right. </p>
  
  <p>This is what I currently have:</p>
  
  <pre><code>lblNewPassword.Text = txtOrigPassword.Text.Replace("[0-9]", "Z")
  </code></pre>
  
  <p>I have also tried:</p>
  
  <pre><code>lblNewPassword.Text = txtOrigPassword.Text.Replace("#", "Z")
  </code></pre>
  
  <p>And:</p>
  
  <pre><code>lblNewPassword.Text = txtOrigPassword.Text.Replace("*#*", "Z")
  </code></pre>