We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a46b3b commit 7421a83Copy full SHA for 7421a83
solution/3400-3499/3465.Find Products with Valid Serial Numbers/README_EN.md
@@ -123,7 +123,7 @@ import pandas as pd
123
124
125
def find_valid_serial_products(products: pd.DataFrame) -> pd.DataFrame:
126
- valid_pattern = r"(?-i)\bSN[0-9]{4}-[0-9]{4}\b"
+ valid_pattern = r"\bSN[0-9]{4}-[0-9]{4}\b"
127
valid_products = products[
128
products["description"].str.contains(valid_pattern, regex=True)
129
]
0 commit comments