^start of line
\s*any whitespace character, repeated any number of times
\[?optionally matches the literal [ (9110 / 1338 / 5B16)
Group 1(TEST COOKIE|100% to v\d) 1st AlternativeTEST COOKIE TEST COOKIEthe literal text TEST COOKIE (case insensitive) 2nd Alternative100% to v\d 100% to vthe literal text 100% to v (case insensitive) \da digit
\]?optionally matches the literal ] (9310 / 1358 / 5D16)
:?optionally matches the literal : (5810 / 728 / 3A16)
\s*any whitespace character, repeated any number of times
i modifier: insensitive. Matches without distinguishing uppercase and lowercase letters
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