ZTree Regex Puzzle Solution Strict - Part 1 of 2

^([A-Z]{4})[-_](0[1-9]|[12]\d|3[01])(0[1-9]|1[012])(\d\d)[-_](\d+)(-|Of)(\d+\.JPG)$

Options: case insensitive; ^ and $ match at line breaks

Created with RegexBuddy