^start of line
Positive Lookahead(?=[a-zA-Z]{7}$) Character Class[a-zA-Z]{7} {7}matches exactly 7 characters from the set below:
a-zone character from a (9710) to z (12210) (case sensitive)
A-Zone character from A (6510) to Z (9010) (case sensitive)
$end of line
.any character (except for line terminators)
\1the text saved by group 1
.any character (except for line terminators)
\1the text saved by group 1
\2the text saved by group 2
.any character (except for line terminators)
\2the text saved by group 2
\1the text saved by group 1
\2the text saved by group 2
\3the text saved by group 3
.any character (except for line terminators)
\2the text saved by group 2
\1the text saved by group 1
$end of line
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