title: Separate numbers from text in R
body: <p>I have some text: </p>
  
  <pre><code>text="blablabla 400ft blablabla"
  </code></pre>
  
  <p>I'd like to get:</p>
  
  <pre><code>"blablabla 400 ft blablabla"
  </code></pre>
  
  <p>The commands:</p>
  
  <pre><code>unlist(strsplit(text,split="[^0-9]+"))
  gsub("[^0-9]+", " ", text, fixed = FALSE)
  </code></pre>
  
  <p>only return 400. </p>
  
  <p>I'd like to say to gsub: replace every number you find in the text by the same number plus a whitespace at the beginning and at the end. How can I do that?</p>