Build, test, and debug regular expressions
This regular expression captures command-line style arguments beginning with a double dash. It matches two forms: options with values (--key=value) and standalone boolean flags (--verbose). A lookahead ensures the token ends at a boundary followed by whitespace, another character, or end of line. Commonly used for parsing CLI arguments, extracting options from scripts, or tokenizing flags in logs and config strings.