title: Remove numbers from a string in a text file
body: <p>I want to remove the "H" and the numbers after it. I only want the "B".  I know how to remove the "H" but I'm not sure how remove the number after the H".  The number after the H" could vary from one digit to three digits.</p>
  
  <blockquote>
    <p>H1 B<br>H2 B<br>H10 B<br>H11 B</p>
  </blockquote>
  
  <p>I was trying this.  It works if the number after "H" is a single digit.  It won't work if the number after "H" has more than a single digit. </p>
  
  <pre><code>If line.Contains("H") Then
      line = line.Remove(0, 2)
  End If
  
  ' ...
  
  Dim AllFiles As String() = IO.Directory.GetFiles("C:\test")
  For Each File As String In AllFiles
      Dim newfile As New List(Of String)
      For Each line As String In System.IO.File.ReadAllLines(File)
          If line.Contains("H") Then
              line = line.Remove(0, 2)
          End If
          newfile.Add(line)
  </code></pre>