title: Regex for any number of words before new line
body: <p>I parsed some text in paragraph which I want to split out to insert into table.</p>
  <p>The string looks like:</p>
  <p><code>[&quot;Some text unsure how many numbers or if any special charectors etc. But I don't really care I just want all the text in this string \n 123 some more text (50% and some more text) \n&quot;]</code></p>
  <p>What I want do is split out the first string of text before the new line, as it is - whatever that might be. I started by trying this <code>[A-Za-z]*\s*[A-Za-z]*\s*</code> but soon realised that was not going to cut it as the text in this string is variable.</p>
  <p>I then want to take the numbers in the second string, which the following seems to do:</p>
  <pre><code>\d+
  </code></pre>
  <p>Then finally I want to get the percentage in the second string, which the following seems to work for:</p>
  <pre><code>\d+(%)+
  </code></pre>
  <p>I'm planning on using these in a function, but am struggling to compile the regex for the first part? I'm also wondering if the regexs I have for the second 2 parts are the most efficient?</p>
  <p>Update: Hopefully this makes it a bit more clear?</p>
  <p>Input:</p>
  <p><code>[‘ The first chunk of text \n 123 the stats I want (25% the percentage I want) \n The Second chunk of text \n 456 the second stats I want (50% the second percentage I want) \n The third chunk of text \n 789 the third stats I want (75% the third percentage) \n The fourth chunk of text \n 101 The fourth stats (100% the fourth percentage) \n]</code></p>
  <p>Desired output:
  <a href="https://i.stack.imgur.com/Wi14q.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Wi14q.png" alt="enter image description here" /></a></p>