title: Python regex for getting string with special characters
body: <p>So i want to get specific data</p>
  <p>So string is an input by the user</p>
  <pre><code>&quot;price_to_earning + current_price * 0.8&quot;
  </code></pre>
  <p>It could even be</p>
  <pre><code>&quot;price_to_earning*current_price+0.8&quot;
  </code></pre>
  <p>or</p>
  <pre><code>&quot;price_to_earning *current_price/0.8&quot;
  </code></pre>
  <p>How can i extract just <code>&quot;price_to_earning&quot; &amp; &quot;current_price&quot;</code> from the above</p>
  <p>currently, I'm using</p>
  <pre><code>    words = re.findall(r&quot;\b\S+&quot;, raw_query)
  </code></pre>
  <p>but it gets</p>
  <pre><code>['price_to_earning', 'current_price', '0.8'] 
  </code></pre>
  <p>what I want is</p>
  <pre><code>['price_to_earning', 'current_price']
  </code></pre>