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 bad17cf commit 5e9a987Copy full SHA for 5e9a987
src/main/java/com/adventofcode/flashk/day03/MullItOver.java
@@ -8,8 +8,8 @@
8
9
public class MullItOver {
10
11
- private static final Pattern MULTIPLY_PATTERN = Pattern.compile("(mul\\([0-9][0-9]?[0-9]?,[0-9][0-9]?[0-9]?\\))");
12
- private static final Pattern OPERATORS_PATTERN = Pattern.compile("([0-9][0-9]?[0-9]?),([0-9][0-9]?[0-9]?)");
+ private static final Pattern MULTIPLY_PATTERN = Pattern.compile("(mul\\(\\d*,\\d*\\))");
+ private static final Pattern OPERATORS_PATTERN = Pattern.compile("(\\d*),(\\d*)");
13
private static final Pattern IGNORE_MULTIPLICATIONS = Pattern.compile("don't\\(\\).*?do\\(\\)");
14
private static final String DONT = "don't()";
15
0 commit comments