Build, test, and debug regular expressions
This regex matches lines containing source code comments, capturing the text before, the comment itself, and the text after. It supports line comments with // or --, and block comments delimited by /* ... */. Useful for parsing code to identify or extract comment segments, or for syntax highlighting and comment removal in preprocessors.