title: How to remove the first 4 characters from a string if it matches a pattern in Ruby
body: <p>I have the following string: </p>
  
  <pre><code>"h3. My Title Goes Here" 
  </code></pre>
  
  <p>I basically want to remove the first four characters from the string so that I just get back:</p>
  
  <pre><code>"My Title Goes Here".  
  </code></pre>
  
  <p>The thing is I am iterating over an array of strings and not all have the <code>h3.</code> part in front so I can't just ditch the first four characters blindly.  </p>
  
  <p>I checked the docs and the closest thing I could find was <code>chomp</code>, but that only works for the end of a string. </p>
  
  <p>Right now I am doing this:</p>
  
  <pre><code>"h3. My Title Goes Here".reverse.chomp(" .3h").reverse
  </code></pre>
  
  <p>This gives me my desired output, but there has to be a better way. I don't want to reverse a string twice for no reason. Is there another method that will work?</p>