The dollar sign is the complement to the carat and indicates the boundary at the end of the string. This is not the last character of the string but the invisible boundary which follows it. To understand the difference between the two, see "How Did the Python Eat the String? One Byte at a Time".
Back to the main index of this glossary