1 | RegExp.multiline if true, search through newlines |
2 | RegExp.$` or RegExp.leftContext is part of searched string before matched part |
3 | RegExp.$& or RegExp.lastMatch is part of searched string that is matched to by regular expression |
4 | RegExp.$' or RegExp.rightContext is part of searched string after matched part |
5 | So String searched is RegExp.leftContext + RegExp.lastMatch + RegExp.rightContext |
6 | RegExp.lastParen The last parenthesized substring match, if any |
7 | RegExp.$1,$2 .. $9 are the first through ninth parenthesized expressions matched |