Test, validate and match regular expressions
This regular expression is designed to match and extract both block comments (`/* ... */`) and single-line comments (`// ...`) from source code. It is particularly useful for languages like JavaScript, PHP, or C. The pattern cleverly avoids matching the `//` in URLs by ensuring the double slash is not preceded by a colon (as in `http://`). It operates in global and multiline modes to process entire files efficiently.