title: Remove numbers from string in R
body: <p>I'm trying to remove all the number except 67 from string by using the function <code>gsub</code>.</p>
  
  <p><strong>For example:</strong> </p>
  
  <pre><code>txt &lt;- "A function 147832 for 67cleaning 67 data 6 7"
  </code></pre>
  
  <p><strong>Desire output:</strong></p>
  
  <pre><code>txt &lt;- "A function for 67cleaning 67 data"
  </code></pre>
  
  <p>I've tried <code>txt = gsub("[[:digit:]]", "", txt)</code>, but it will remove all the numbers. </p>