Build, test, and debug regular expressions
This regular expression is designed to match both single-line and multi-line comments in the Lua programming language. It captures single-line comments starting with `--` until the end of the line, using the global and multiline flags. Additionally, it matches block comments enclosed within `--[[` and `]]` delimiters, effectively handling non-greedy multiline content. It is highly useful for syntax highlighting, parsing, or stripping comments from Lua source code.