title: Python Math Regex
body: <p>I am creating a programming language in Python and one main component that I'm missing for the basic language is the ability to parse mathematical equations.  I have the function to parse the math but I need to be able to check if the input is a math equation.  I'm looking for a regex to match something like 3*x^(4*y)+1-(7*y*z/x).</p>