I am trying to check an equation for errors. Specifically, I need to test for duplicate input of operators (+,-,x,/,sqrt,exp) or an operator followed by =. Is it possible to do this using a regex? I have no idea how to begin.