Test, validate and match regular expressions
Matches Composer package entries in composer.json files, capturing the vendor/package name and its version constraint. Useful for parsing dependency definitions or extracting package names and versions from project configuration. The regex uses case-insensitive matching and supports common version constraint characters such as >=, <, ~, *, and others.