Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
Created·2014-02-17 17:29
Flavor·PCRE (Legacy)

/
\* STATUS (?|(?:\"([^\r\n]+)\")|(\S+)|(?:\{\d+\}\r\n(.*))) \(MESSAGES (\d+) UNSEEN (\d+)\)
/
gi
Open regex in editor

Description

Matches the folder name (as IMAP ATOM, Quoted String or Literal String) and folder message total and unseen count.

Submitted by Mike Johnson