title: Regular expression to capture split strings by numbers, including those with these symbols? (Why doesn't this expression work?)
body: <p>I want to split a string by its digits, including leading dollar signs, decimals, and trailing percentage signs and parentheses. So in this example</p>
  
  <pre><code>text = 'this is a string (0.7000) $0.9 80% 900000 0.9 chars not numbers.'
  </code></pre>
  
  <p>I would want my output to look like this</p>
  
  <pre><code>['this is a string', '(0.7000)', '$0.9', '80%', '900000', '0.9', 'chars not numbers.']
  </code></pre>
  
  <p>According to <a href="https://regex101.com/" rel="nofollow noreferrer">https://regex101.com/</a>, this should work:</p>
  
  <pre><code>(\(?\$?[\.0-9,]+[.%)]?)
  </code></pre>
  
  <p>However, when I run this script on my string:</p>
  
  <pre><code>splitText = re.split(r'(\(?\$?[\.0-9,]+[.%)]?)', text)
  print(splitText)
  </code></pre>
  
  <p>I get an empty list.</p>
  
  <p>I have implemented this function successfully in other areas of my script, and so I am not sure why this one doesn't work. Any guidance would be appreciated.</p>
  
  <p><strong>EDIT:</strong> Sorry guys, I'm a bit sleep deprived and miswrote my own problem. I didn't want to split the words into characters, I wanted to maintain the words and only split the numbers. I've updated the output to its correct form.</p>