Skip to content

Commit 94503d6

Browse files
committed
Tweak Edition Regex
1 parent 05ea2c8 commit 94503d6

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

ops/110.tweak-edition-regex.sql

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
-- @operation: export
2+
-- @entity: batch
3+
-- @name: Tweak Edition Regex
4+
-- @exportedAt: 2026-03-22T23:34:47.016Z
5+
-- @opIds: 3587, 3588, 3589, 3590
6+
7+
-- --- BEGIN op 3587 ( update regular_expression "Special Edition" )
8+
update "regular_expressions" set "pattern" = '(?<=\b[12]\d{3}\b).*\b(Cut|Directors|DC|Extended|Special|Uncensored|Uncut|Unrated|Version|(?<!{)Edition)(\b|\d)' where "name" = 'Special Edition' and "pattern" = '(?<=\b[12]\d{3}\b).*\b(Cut|Directors|DC|Edition|Extended|Special|Uncensored|Uncut|Unrated|Version)(\b|\d)';
9+
-- --- END op 3587
10+
11+
-- --- BEGIN op 3588 ( update regular_expression "Special Edition" )
12+
update "regular_expressions" set "pattern" = '(?<=\b[12]\d{3}\b).*\b(Cut|Directors|DC|Special|Uncensored|Uncut|Unrated|Version|(?<!{)Edition)(\b|\d)' where "name" = 'Special Edition' and "pattern" = '(?<=\b[12]\d{3}\b).*\b(Cut|Directors|DC|Extended|Special|Uncensored|Uncut|Unrated|Version|(?<!{)Edition)(\b|\d)';
13+
-- --- END op 3588
14+
15+
-- --- BEGIN op 3589 ( update regular_expression "Theatrical Edition" )
16+
update "regular_expressions" set "pattern" = '(?<=\b[12]\d{3}\b).*\b(Theatrical)(\b|\d)' where "name" = 'Theatrical Edition' and "pattern" = '^(.*?)(\d{4})(.*?)\b(theatrical)\b';
17+
-- --- END op 3589
18+
19+
-- --- BEGIN op 3590 ( update regular_expression "Special Edition" )
20+
update "regular_expressions" set "pattern" = '(?<=\b[12]\d{3}\b).*\b(Cut|Directors|DC|Extended|Special|Uncensored|Uncut|Unrated|Version|(?<!{)Edition)(\b|\d)' where "name" = 'Special Edition' and "pattern" = '(?<=\b[12]\d{3}\b).*\b(Cut|Directors|DC|Special|Uncensored|Uncut|Unrated|Version|(?<!{)Edition)(\b|\d)';
21+
-- --- END op 3590

0 commit comments

Comments
 (0)