Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 8585d28

Browse files
fix: incorrect regex pattern in problem 3465 solution (#4774)
1 parent c2d1cd9 commit 8585d28

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

‎solution/3400-3499/3465.Find Products with Valid Serial Numbers/README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ tags:
113113
# Write your MySQL query statement below
114114
SELECT product_id, product_name, description
115115
FROM products
116-
WHERE description REGEXP '\\bSN[0-9]{4}-[0-9]{4}\\b'
116+
WHERE description REGEXP '(?-i)\\bSN[0-9]{4}-[0-9]{4}\\b'
117117
ORDER BY 1;
118118
```
119119

‎solution/3400-3499/3465.Find Products with Valid Serial Numbers/README_EN.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ Based on the above rules, we can use a regular expression to match valid serial
112112
# Write your MySQL query statement below
113113
SELECT product_id, product_name, description
114114
FROM products
115-
WHERE description REGEXP '\\bSN[0-9]{4}-[0-9]{4}\\b'
115+
WHERE description REGEXP '(?-i)\\bSN[0-9]{4}-[0-9]{4}\\b'
116116
ORDER BY 1;
117117
```
118118

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Write your MySQL query statement below
22
SELECT product_id, product_name, description
33
FROM products
4-
WHERE description REGEXP '\\bSN[0-9]{4}-[0-9]{4}\\b'
4+
WHERE description REGEXP '(?-i)\\bSN[0-9]{4}-[0-9]{4}\\b'
55
ORDER BY 1;

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /