title: Remove the letters between two patterns of strings in R
body: <p>How can I remove the letters between two specific patterns in R?</p>
  
  <p>For instance</p>
  
  <pre><code>a= "a#g abcdefgtdkfef_jpg&gt;pple"
  </code></pre>
  
  <p>I would like to remove all the letters between <code>#g</code> and <code>jpg&gt;</code></p>
  
  <pre><code>a1="apple"
  </code></pre>
  
  <p>I tried to find some function in <code>stringr</code> but I couldn't </p>