Group 1(or|and|(?:(?P<case1namE>)\() ?|) orthe literal text or (case insensitive) andthe literal text and (case insensitive) 3rd Alternative(?:(?P<case1namE>)\() ? Non-Capturing Group(?:(?P<case1namE>)\() Group case1namE(?P<case1namE>) — does not consume characters
\(the literal ( (4010 / 508 / 2816)
?optionally matches the literal (3210 / 408 / 2016)
4th Alternative — matches an empty string
?optionally matches the literal (3210 / 408 / 2016)
\w*any word character, repeated any number of times
?repeats the group contents below at most once:
\.the literal . (4610 / 568 / 2E16)
colzthe literal text colz (case insensitive) likethe literal text like (case insensitive) ?optionally matches the literal (3210 / 408 / 2016)
\=the literal = (6110 / 758 / 3D16)
?optionally matches the literal (3210 / 408 / 2016)
\?the literal ? (6310 / 778 / 3F16)
Non-Capturing Group(?:(?P=case1namE) OR)? ?repeats the group contents below at most once:
(?P=case1namE)the text saved by group case1namE
ORthe literal text OR (case insensitive) ?repeats the group contents below at most once:
andthe literal text and (case insensitive) 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
i modifier: insensitive. Matches without distinguishing uppercase and lowercase letters