Python Math Regex -


I am creating a programming language in Python and parsing a main component that I do not remember for the original language The ability to do mathematical equations has a function to parse math, but I need to check whether 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).

You can not do what you want with regular expressions, this is not a regular language in Python Extensions are what you want to do to abuse what you do, but it will be unnecessary and you will not get anything to use parses.

What you want is a parser, the library is very easy to use for Python.

Here is a related.

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -