Test, validate and match regular expressions
This regular expression is designed to parse filenames or titles of anime episodes released by the group HorribleSubs. It extracts the show name, an optional release source like "(Web)" or "(TV)", the primary episode number, an optional secondary episode number (for double episodes), and an optional version number. The pattern expects the release group tag `[HorribleSubs]` at the beginning and ends the match right before the resolution or codec bracket, such as ` [1080p]`. It is highly useful for organizing or renaming downloaded anime media files.