I suck at regex and I've been trying to get through this problem. The problem is that I have a string and I want to match any "+" or "-" that aren't preceded by a "^".
Example string:
100x^-3+2x-10
The string above would be mathematically formatted or read as "one hundred times x to the -3 power, plus two times x, minus ten".
And I want to match the "+" before "2x" and the "-" before the "10" but not the "-" after "100x^". I hope it's not that confusing. I have tried the following reg, with no luck:
[^\^][\+|\-]
Obviously I'm missing a big detail somewhere.