Test, validate and match regular expressions
This regular expression parses Unix-style file paths into distinct components across multiple lines. It captures the directory path (ending with slashes), the base filename, and an optional file extension. It is highly useful for file system navigation, extracting specific filenames, or processing path structures in logs and text data.