Test, validate and match regular expressions
This regular expression matches both single-line (`//`) and multi-line (`/* */`) comments in JavaScript code. It captures the content of the comment, allowing for easy extraction or removal during code processing. It is commonly used in minifiers, linters, or documentation generators to clean up or parse source files.