Test, validate and match regular expressions
This regex validates an absolute Windows file path, requiring a drive letter (e.g., C:), a root directory, one or more subdirectories, and a final filename with a valid extension. It ensures only allowed characters are used in directory names and the file name, making it useful for input validation in applications handling local file paths.