Build, test, and debug regular expressions
Parses PromQL label matchers by capturing three named groups: the label name (starting with a letter, digit, or underscore), the selector operator (=, =~, !, !=, or !~), and the value—either a double-quoted string with escaped character support or an unquoted token ending before whitespace, braces, or commas. Useful for syntax highlighting, validating Prometheus queries, or extracting label filters from PromQL expressions and log queries.