could someone help me create a Java regex for the following polynomial expression?
Expression: 9x^2 + 4x + 2
Ive so far not been able to map the constant and im not sure if this is the best way but this is whats from my best understanding:
(-?\b\d+) [xx] || ^ (-?\d+\b)
Any help is much appreciated thanks :)