Build, test, and debug regular expressions
Matches any line that ends with the letter 'a'. The multiline flag makes '$' anchor to the end of each line rather than just the end of the string, while the greedy '.*' consumes everything from the start of the line up to the trailing 'a'. With the global flag, it finds such matches on every line. Useful for finding or validating lines ending in a specific character, such as words ending in 'a'.