title: regexp: get percentage number out of text and text itself
body: <p>Example strings with desired results:</p>
  
  <p>a) <code>"some āē text 12%"</code></p>
  
  <p>I need to get "some āē text" and "12%" as seperate items. </p>
  
  <p>b) <code>"12% some text"</code></p>
  
  <p>I need to get "some text" and "12%" as seperate items.</p>
  
  <p>Moreover, I always should be able to identify, where percentage number is in match. So, it is better if in result matches percentage number (12%) would always be second.</p>
  
  <p><strong>Assumptions:</strong> percerntage number can be at the beginning or at the end of text only. Thus there are no percentage numbers somewhere between words. Also there is only one percentage number within text.</p>
  
  <p>I am not a friend of Regexp yet, but I have tried. 
  So far I can write regexp to match if there is text with percentage. But I cannots write regexp that seperated this number from another text.</p>
  
  <pre><code>        // text with special characters and percentage
          const regex = /^[a-zA-Z0-9\u00C0-\u017F\s%]+$/gi // I need english + other letters, but not special symbols or brackets
          var matches = str.match(regex);
  </code></pre>