Test, validate and match regular expressions
This regex matches valid multiplication instructions of the form mul(X,Y) where X and Y are 1-3 digit numbers, as required by Advent of Code 2024 Day 3. It extracts the operands into named groups 'left' and 'right', enabling easy parsing of corrupted memory files to compute sums of valid multiplications. Common use cases include data validation, log mining, and solving programming puzzles that require extracting structured arithmetic operations.