\^the literal ^ (9410 / 1368 / 5E16)
\(the literal ( (4010 / 508 / 2816)
\w+any word character, repeated at least once
Non-Capturing Group(?:\|\w+)* *repeats the group contents below any number of times:
\|the literal | (12410 / 1748 / 7C16)
\w+any word character, repeated at least once
\)the literal ) (4110 / 518 / 2916)
\$the literal $ (3610 / 448 / 2416)
g modifier: global. Finds all matches instead of stopping after the first