how to extract numbers from a equation given as a string in python? : <p>ex:- <strong>string</strong>="1x-2y-7"
<strong>output</strong>=[1,-2,-7]</p>

<p>I can get the number using <strong>isnumeric</strong> but I am not able to extract signs out of it </p>
