Test, validate and match regular expressions
This regular expression matches inline LaTeX equations enclosed in single dollar signs, such as `$ y = mx + b $`. It captures the mathematical expression inside a named group called `in_line` while ensuring that the equation is surrounded by spaces or tabs to avoid matching prices or other unrelated dollar signs. It is highly useful for parsing Markdown or LaTeX documents to extract inline math for rendering or syntax highlighting.