diff --git a/2024/src/day3.py b/2024/src/day3.py index cdee1c5..3990f72 100644 --- a/2024/src/day3.py +++ b/2024/src/day3.py @@ -4,9 +4,9 @@ DAY_NUMBER = 3 USE_EXAMPLE = False -DO_REGEX = "do\(\)" -DO_NOT_REGEX = "don't\(\)" -MUL_REGEX = "mul\([0-9]{1,3},[0-9]{1,3}\)" +DO_REGEX = r"do\(\)" +DO_NOT_REGEX = r"don\'t\(\)" +MUL_REGEX = r"mul\([0-9]{1,3},[0-9]{1,3}\)" with get_data(DAY_NUMBER, USE_EXAMPLE) as f: memory = "".join(f.readlines())