Test, validate and match regular expressions
This regular expression is designed to parse IMAP LIST server responses, which are used to retrieve the hierarchy of mail folders. It extracts the folder markers (like \HasChildren or \Drafts) into a named capture group called 'Markers'. It also isolates the mailbox name itself into a 'folder' capture group by looking for the specific quote-enclosed forward slash delimiter used in IMAP responses. The pattern requires global and multiline flags to process multiple folder entries simultaneously.