Test, validate and match regular expressions
This PCRE2 regex attempts to match the literal string '--help' while trying to avoid matching it if it is enclosed in double quotes. It uses a conditional and lookarounds to achieve this exclusion, making it suitable for extracting command-line arguments or flags from code, logs, or configuration files without picking up quoted string examples.