Test, validate and match regular expressions
Extracts path and filename components from a photo file path. Captures the directory path (supporting Windows backslash and Unix forward slash formats) and breaks the filename into a 4-character prefix, a photo number (1-10 digits), and a file extension (3-4 characters). Useful for organizing or parsing photo collections with structured naming conventions.