title: Extracting a string before space and sequence of numbers
body: <p>I have a string that has numbers dash and numbers so it can be </p>
  
  <pre><code>1-2
  234-45
  23-8
  </code></pre>
  
  <p>It can be any sequence of any number up to 12 characters. </p>
  
  <p>These all numbers are preceded by a string. I need to extract this string before this sequence begins.</p>
  
  <pre><code>This is a Test1 1-2
  This is a test for the first time 234-45
  This is a test that is good 23-8
  </code></pre>
  
  <p>so I need to extract</p>
  
  <pre><code>This is a Test1
  
  This is a test for the first time 
  
  This is a test that is good
  </code></pre>
  
  <p>there is only one space between this string and the sequence.</p>
  
  <p>Is there any way I can extract that string. Split method is not working here.
  I forgot to mention that I have numbers/test before the string too so it can be</p>
  
  <pre><code>2123 This is a test for the first time  23-456
  </code></pre>
  
  <p>or</p>
  
  <pre><code> Ac23 This is a test for the first time  23-457
  </code></pre>
  
  <p>any help will be appreciated.</p>