Test string
Tokens: $1 $<name> $& $` $' $$. Without the g flag only the first match is replaced.
0 / 0
Pattern
Input
Runs the built-in matcher on generated strings of growing length (a repeated character followed by one that forces failure) and counts engine steps.