JS regex isn't matching, even thought it works with a regex tester
- by Tom O
I'm writing a piece of client-side javascript code that takes a function and finds the derivative of it, however, the regex that's supposed to match with the power rule fails to work in the context of the javascript program, even though it sucessfully matches when it's used with an independent regex tester.
The browser I'm executing this on is…