A-Zone character from A (6510) to Z (9010) (case sensitive)
\1{2}the text saved by group 1, repeated exactly 2 times
\1the text saved by group 1
A-Zone character from A (6510) to Z (9010) (case sensitive)
\2{2}the text saved by group 2, repeated exactly 2 times
Negative Lookahead(?!\1|\2) \1the text saved by group 1
\2the text saved by group 2
A-Zone character from A (6510) to Z (9010) (case sensitive)
\3{2}the text saved by group 3, repeated exactly 2 times
Negative Lookahead(?!\1|\2|\3) \1the text saved by group 1
\2the text saved by group 2
\3the text saved by group 3
A-Zone character from A (6510) to Z (9010) (case sensitive)
\4{2}the text saved by group 4, repeated exactly 2 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