Answer the question
In order to leave comments, you need to log in
How to describe a monomial in regular expressions?
I study at school, I got carried away with programming in C#. To develop the skill, I want to write an application that will solve different types of equations, reading them from the input string. Faced with the fact that it is necessary to describe a monomial in the language of regular expressions, taking into account the fact that it can be a sine, and a square, and a logarithm, and a square of a logarithm, etc. When I tried it myself, the expression grew to such a size that I'm confused about it myself. I think that the task is typical and there are already solutions, but I could not find them in Google. Maybe actually in C # there is something.
Answer the question
In order to leave comments, you need to log in
You don't really need to use regular expressions for this kind of task.
The correct solution is here https://habrahabr.ru/post/281495/
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question