^start of line
Comment: start of string and /
Group operation(?P<operation>buy|sell) buythe literal text buy (case sensitive) sellthe literal text sell (case sensitive) Comment: buy or sell
\s+a Unicode whitespace character, repeated at least once
Comment: 1+ whitespaces
Group amount(?P<amount>\d+) \d+a Unicode decimal digit, repeated at least once
Comment: 1+ digits
\s+a Unicode whitespace character, repeated at least once
Comment: 1+ whitespaces
Group network(?P<network>\S+) \S+any character that is not Unicode whitespace, repeated at least once
Comment: 1+ non-whitespaces
\s+a Unicode whitespace character, repeated at least once
\s+a Unicode whitespace character, repeated at least once
Comment: 1+ whitespaces, @, 1+ whitespaces
\S+any character that is not Unicode whitespace, repeated at least once
Comment: 1+ non-whitespaces
\s+a Unicode whitespace character, repeated at least once
Comment: 1+ whitespaces
Group legal(?P<legal>\S+) \S+any character that is not Unicode whitespace, repeated at least once
Comment: 1+ non-whitespaces
\s+a Unicode whitespace character, repeated at least once
Comment: 1+ whitespaces
Group cellphone(?P<cellphone>\+?\d(?:\s?\d)+) \+?optionally matches the literal + (4310 / 538 / 2B16)
\da Unicode decimal digit
Non-Capturing Group(?:\s?\d)+ +repeats the group contents below at least once:
\s?optionally matches a Unicode whitespace character
\da Unicode decimal digit
Comment: optional +, digits with possible one whitespace in between each
Non-Capturing Group(?: # non-capturing group start:
\s+ (?P<email>[^\s@]+@\S+) # 1+ whitespaces, email
)? ?repeats the group contents below at most once:
Comment: non-capturing group start:
\s+a Unicode whitespace character, repeated at least once
Group email(?P<email>[^\s@]+@\S+) Negated Character Class[^\s@]+ +matches at least one character outside the set below:
\sa Unicode whitespace character
@the literal @ (6410 / 1008 / 4016)
@the literal @ (6410 / 1008 / 4016)
\S+any character that is not Unicode whitespace, repeated at least once
Comment: 1+ whitespaces, email
Comment: non-capturing group end, optional due to ?
$end of line
Comment: end of string
g modifier: global. Finds all matches instead of stopping after the first
m modifier: multiline. Causes ^ and $ to match the start and end of each line, not only the start and end of the string
x modifier: extended. Ignores unescaped whitespace and comments outside character classes