diff --git a/regex_patterns/B&W.yml b/regex_patterns/B&W.yml index 66711af..e47e418 100644 --- a/regex_patterns/B&W.yml +++ b/regex_patterns/B&W.yml @@ -1,6 +1,10 @@ name: B&W -pattern: (?:\(\d{4}\)|\d{4})\s*[\w\s.,-]*\s*(?:\bblack\b[\s.]*(?:and|\&|-|\/)[\s.]*\bwhite\b|\bb\&w\b|\bb\s*[\/\-]?\s*w\b|\bb\b[\s.]*(?:and|\&|-|\/)[\s.]*\bw\b) -description: Black and White colour grading. +pattern: (?:\(\d{4}\)|\d{4}).*?(?:\bblack\b[\s\&.\-\/]*(?:and)?[\s\&.\-\/]*\bwhite\b|\bb\&?w\b) +description: Black and White colour grading. This regex matches a 4-digit number (optionally + surrounded by parentheses), followed by any amount of text, and then detects references + to "black and white" in various formats. It supports `blackwhite` (no spaces), `black + and white`, `black-white`, "`black & white`, `black/white`, as well as shorthand + `BW` and `B&W`, while excluding invalid variations like `b w`, `b-w`, or `b/w` tags: - Enhancement - Unwanted @@ -10,7 +14,7 @@ tests: id: 1 input: The Mist Black and White 2007 2160p USA UHD Blu-ray DV HDR HEVC TrueHD 7.1 Atmos-BeyondHD - lastRun: '2025-02-13T13:15:39.155364' + lastRun: '2025-02-14T14:41:22.957835' matchSpan: null matchedContent: null matchedGroups: [] @@ -18,7 +22,7 @@ tests: - expected: false id: 2 input: Black and White 2002 1080p Blu-ray AVC DTS-HD MA 5.1-CultFilms - lastRun: '2025-02-13T13:15:39.155364' + lastRun: '2025-02-14T14:41:22.957835' matchSpan: null matchedContent: null matchedGroups: [] @@ -27,7 +31,7 @@ tests: id: 3 input: 'Pokemon the Movie: Black and White-Victini and Reshiram Zekrom 2011 1080p AUS BD50 DTS-HD MA 5.1 AVC-PHOENiX' - lastRun: '2025-02-13T13:15:39.155364' + lastRun: '2025-02-14T14:41:22.957835' matchSpan: null matchedContent: null matchedGroups: [] @@ -35,7 +39,7 @@ tests: - expected: true id: 4 input: Madeo 2009 Black & White Version 1080p JPN Blu-ray AVC TrueHD 5.1-kyRLS - lastRun: '2025-02-13T13:15:39.155364' + lastRun: '2025-02-14T14:41:22.957835' matchSpan: end: 24 start: 6 @@ -45,7 +49,7 @@ tests: - expected: true id: 6 input: Psycho (1960) B&W - lastRun: '2025-02-13T13:15:39.155364' + lastRun: '2025-02-14T14:41:22.957835' matchSpan: end: 17 start: 7 @@ -55,7 +59,7 @@ tests: - expected: true id: 7 input: Citizen Kane (1941) Black.and.White - lastRun: '2025-02-13T13:15:39.155364' + lastRun: '2025-02-14T14:41:22.957835' matchSpan: end: 35 start: 13 @@ -65,7 +69,7 @@ tests: - expected: true id: 8 input: Dracula (1931) Black-White - lastRun: '2025-02-13T13:15:39.155364' + lastRun: '2025-02-14T14:41:22.957835' matchSpan: end: 26 start: 8 @@ -75,7 +79,7 @@ tests: - expected: true id: 11 input: Young Frankenstein (1974) BW DVDRip - lastRun: '2025-02-13T13:15:39.155364' + lastRun: '2025-02-14T14:41:22.957835' matchSpan: end: 28 start: 19 @@ -84,9 +88,9 @@ tests: passes: true - expected: false id: 12 - input: Title (2007) Jack Black & Betty White - lastRun: '2025-02-13T13:15:39.155364' + input: Jack Black & Betty White in a Comedy Special + lastRun: '2025-02-14T14:41:22.957835' matchSpan: null matchedContent: null matchedGroups: [] - passes: true \ No newline at end of file + passes: true