@@ -0,0 +1,732 @@
+#!/usr/bin/env python%0A%0Aimport re%0A%0Atotal = 0%0A%0Awith open('../inputs/02.txt') as f:%0A   for line in f:%0A      # data is like %221x2x3%22%0A      matches = re.split(%22(%5Cd+)%22, line)%0A%0A      # 7 = 3 matches + 2 empty matches + 2 x characters%0A      # The empty matches are because of the expression matches the begin and%0A      # end of the string.%0A      if len(matches) == 7:%0A         l = int(matches%5B1%5D)%0A         w = int(matches%5B3%5D)%0A         h = int(matches%5B5%5D)%0A%0A         dimensions = %5Bl, w, h%5D%0A         dimensions.sort()%0A%0A         shortPerimiter = (2 * dimensions%5B0%5D) + (2 * dimensions%5B1%5D)%0A         volume = l * w * h%0A%0A         total += shortPerimiter + volume%0A      else:%0A         print %22Error: did not find 3 matches '%25s'%22 %25 (line)%0A%0Aprint total%0A

Add day 2 part 2 solution.