So i want to get specific data
So string is an input by the user
"price_to_earning + current_price * 0.8"
It could even be
"price_to_earning*current_price+0.8"
or
"price_to_earning *current_price/0.8"
How can i extract just "price_to_earning" & "current_price" from the above
currently, I'm using
words = re.findall(r"\b\S+", raw_query)
but it gets
['price_to_earning', 'current_price', '0.8']
what I want is
['price_to_earning', 'current_price']