Test, validate and match regular expressions
This regex parses semicolon-separated key-value pairs, typically used for cookie headers or similar config strings. It lazily captures the key and value up to a semicolon or end of line, allowing for optional spaces after semicolons. Useful for extracting cookie data or simple token lists in JavaScript environments.