Build, test, and debug regular expressions
This PCRE regex matches an IMAP STATUS response, extracting the mailbox name, total message count, and unseen message count. It handles three different mailbox name formats: quoted strings, unquoted strings, and literal strings using the length-prefix syntax. The pattern also specifically matches a trailing literal string indicating global ignore flags.