Test, validate and match regular expressions
This regular expression matches inline LaTeX math expressions enclosed in `$...$` that contain unspaced mathematical operators (`-`, `=`, or `+`). The pattern captures the text before the operator, the operator itself, and the text after it, ensuring no spaces surround the operator. It is typically used for linting or formatting LaTeX code to detect formulas like `$x+y$` where operators lack spaces for better readability.