diff --git a/solution/3400-3499/3465.Find Products with Valid Serial Numbers/README.md b/solution/3400-3499/3465.Find Products with Valid Serial Numbers/README.md index 2246158fb2d19..d8391013551d7 100644 --- a/solution/3400-3499/3465.Find Products with Valid Serial Numbers/README.md +++ b/solution/3400-3499/3465.Find Products with Valid Serial Numbers/README.md @@ -113,7 +113,7 @@ tags: # Write your MySQL query statement below SELECT product_id, product_name, description FROM products -WHERE description REGEXP '\\bSN[0-9]{4}-[0-9]{4}\\b' +WHERE description REGEXP '(?-i)\\bSN[0-9]{4}-[0-9]{4}\\b' ORDER BY 1; ``` diff --git a/solution/3400-3499/3465.Find Products with Valid Serial Numbers/README_EN.md b/solution/3400-3499/3465.Find Products with Valid Serial Numbers/README_EN.md index 8cc4e87aa3017..b49274cf0753c 100644 --- a/solution/3400-3499/3465.Find Products with Valid Serial Numbers/README_EN.md +++ b/solution/3400-3499/3465.Find Products with Valid Serial Numbers/README_EN.md @@ -112,7 +112,7 @@ Based on the above rules, we can use a regular expression to match valid serial # Write your MySQL query statement below SELECT product_id, product_name, description FROM products -WHERE description REGEXP '\\bSN[0-9]{4}-[0-9]{4}\\b' +WHERE description REGEXP '(?-i)\\bSN[0-9]{4}-[0-9]{4}\\b' ORDER BY 1; ``` diff --git a/solution/3400-3499/3465.Find Products with Valid Serial Numbers/Solution.sql b/solution/3400-3499/3465.Find Products with Valid Serial Numbers/Solution.sql index d5c646b009f03..97f44c9600ebc 100644 --- a/solution/3400-3499/3465.Find Products with Valid Serial Numbers/Solution.sql +++ b/solution/3400-3499/3465.Find Products with Valid Serial Numbers/Solution.sql @@ -1,5 +1,5 @@ # Write your MySQL query statement below SELECT product_id, product_name, description FROM products -WHERE description REGEXP '\\bSN[0-9]{4}-[0-9]{4}\\b' +WHERE description REGEXP '(?-i)\\bSN[0-9]{4}-[0-9]{4}\\b' ORDER BY 1;