Test, validate and match regular expressions
This regular expression matches PHP `define()` function calls, capturing the constant name in the first group and its assigned value in the second group. It attempts to account for variations in spacing and quotation marks (single, double, or space) around the arguments. It is highly useful for static code analysis, automated refactoring, or extracting configuration values from legacy PHP codebases.