Test, validate and match regular expressions
This regex matches both single-line comments (starting with //) and multi-line block comments (enclosed in /* */), as commonly found in Java, C#, and similar C-style languages. It is useful for extracting or stripping comments from source code, with the global flag to find all occurrences and case-insensitive flag for robustness.