Build, test, and debug regular expressions
This regular expression matches mathematical expressions for the integral of cosecant squared, specifically looking for formats like `-cot(x) + c`. It expects a leading minus sign (optionally followed by a 1), the cotangent function 'cot' applied to 'x' with optional parentheses, an addition sign, and a single lowercase alphabetical character representing the constant of integration. It is highly useful for grading or validating calculus equations in educational platforms.