Build, test, and debug regular expressions
This regex matches and extracts components of a file path or URL, specifically capturing directory names, file names, and file extensions into named groups. It uses a positive lookahead to find directory names followed by a slash, and a positive lookbehind to find extensions preceded by a dot. This pattern is useful for file system navigation, URL parsing, and file type validation.