Test, validate and match regular expressions
This regular expression matches and captures a file extension at the end of a string. It looks for a literal dot followed by one or more characters that are not dots, capturing the extension itself in the first capturing group. The global and multiline flags allow it to process multiple filenames line by line efficiently.