Invoice nothe literal text Invoice no (case insensitive) \.the literal . (4610 / 568 / 2E16)
:the literal : (5810 / 728 / 3A16)
\s+any whitespace character, repeated at least once
Group invoice(?<invoice>[^\n]+) Negated Character Class[^\n]+ +matches at least one character outside the set below:
\na line-feed (newline) character (ASCII 10)
\s+any whitespace character, repeated at least once
Amount to be paid:the literal text Amount to be paid: (case insensitive) \s+any whitespace character, repeated at least once
Non-Capturing Group(?:\$|USD\s) \$the literal $ (3610 / 448 / 2416)
USDthe literal text USD (case insensitive) \sany whitespace character
Group amount(?<amount>\d[\d,]+(?:\.\d{2})?) \da digit
+matches at least one character from the set below:
\da digit
,the literal , (4410 / 548 / 2C16)
Non-Capturing Group(?:\.\d{2})? ?repeats the group contents below at most once:
\.the literal . (4610 / 568 / 2E16)
\d{2}a digit, repeated exactly 2 times
\s+any whitespace character, repeated at least once
payment datethe literal text payment date (case insensitive) \s+any whitespace character, repeated at least once
Group date(?<date>\d{2}\/\d{2}\/\d{4}) \d{2}a digit, repeated exactly 2 times
\/the literal / (4710 / 578 / 2F16)
\d{2}a digit, repeated exactly 2 times
\/the literal / (4710 / 578 / 2F16)
\d{4}a digit, repeated exactly 4 times
g modifier: global. Finds all matches instead of stopping after the first
i modifier: insensitive. Matches without distinguishing uppercase and lowercase letters