Search
The dollar sign, $, matches the word at the end of a line or string.
$
This code defines a regular expression pattern regexDollar which matches strings that end with the word world.
regexDollar
world