Group header(?<header>(((?<direction>Sell|Buy)|(?<pair>[A-Z]{3}\.[A-Z]{3})|(?<entry>\d{5}))\s+){3}) Group 2(((?<direction>Sell|Buy)|(?<pair>[A-Z]{3}\.[A-Z]{3})|(?<entry>\d{5}))\s+){3} {3}repeats the group contents below exactly 3 times:
Group 3((?<direction>Sell|Buy)|(?<pair>[A-Z]{3}\.[A-Z]{3})|(?<entry>\d{5})) 1st Alternative(?<direction>Sell|Buy) Group direction(?<direction>Sell|Buy) Sellthe literal text Sell (case sensitive) Buythe literal text Buy (case sensitive) 2nd Alternative(?<pair>[A-Z]{3}\.[A-Z]{3}) Group pair(?<pair>[A-Z]{3}\.[A-Z]{3}) {3}matches exactly 3 characters from the set below:
A-Zone character from A (6510) to Z (9010) (case sensitive)
\.the literal . (4610 / 568 / 2E16)
{3}matches exactly 3 characters from the set below:
A-Zone character from A (6510) to Z (9010) (case sensitive)
3rd Alternative(?<entry>\d{5}) Group entry(?<entry>\d{5}) \d{5}a digit, repeated exactly 5 times
\s+any whitespace character, repeated at least once
\n*a line-feed (newline) character (ASCII 10), repeated any number of times
TP 1 the literal text TP 1 (case sensitive) \d{5}a digit, repeated exactly 5 times
\n*a line-feed (newline) character (ASCII 10), repeated any number of times
Group 8(TP 2 (?<TP2>\d{5}))? ?repeats the group contents below at most once:
TP 2 the literal text TP 2 (case sensitive) \d{5}a digit, repeated exactly 5 times
\n*a line-feed (newline) character (ASCII 10), repeated any number of times
SL the literal text SL (case sensitive) \d{5}a digit, repeated exactly 5 times
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