Note that there could be other characters like a dot, or a hyphen in the file names that have special meanings in the Regex. Hence, we would need to escape the regex. The alternative would be to not use the toMatch method, and instead just use string.match method.