title: Split a string between a word and a number
body: <p>I have some text like the following:</p>
  <pre class="lang-r prettyprint-override"><code>foo_text &lt;- c(
    &quot;73000 PARIS   74000 LYON&quot;,
    &quot;75 000 MARSEILLE 68483 LILLE&quot;,
    &quot;60  MARSEILLE 68483 LILLE&quot;
  )
  </code></pre>
  <p>I'd like to separate each element in two after the first word. Expected output:</p>
  <pre class="lang-r prettyprint-override"><code>&quot;73000 PARIS&quot; &quot;74000 LYON&quot; &quot;75000 MARSEILLE&quot; &quot;68483 LILLE&quot; &quot;60 MARSEILLE&quot; &quot;68483 LILLE&quot;
  </code></pre>
  <p>Note that the number of spaces between two elements in the original text is not necessarily the same (e.g the number of spaces between PARIS and 74000 is not the same than the number of spaces between MARSEILLE and 68483). Also, sometimes the first number has a space in it (e.g 75 000) and sometimes not (e.g 73000).</p>
  <p>I tried to adapt <a href="https://stackoverflow.com/a/54759331/11598948">this answer</a> but without success:</p>
  <pre class="lang-r prettyprint-override"><code>(delimitedString = gsub( &quot;^([a-z]+) (.*) ([a-z]+)$&quot;, &quot;\\1,\\2&quot;, foo_text))
  </code></pre>
  <p>Any idea how to do that?</p>