Python easy understood 2-line solution
Explanation\nSplit by + and -, and sum up all fractions.\n\nAlso you need to import libraries before the class\n\nfrom fractions import Fraction as f\n\n\n\nwit
## **Explanation**\nSplit by `+` and `-`, and sum up all fractions.\n\nAlso you need to import libraries before the class\n```\nfrom fractions import Fraction as f\n```\n<br>\n\nwithout regx\n```py\n    def fractionAddition(self, exp):\n        res = sum(map(f, re.findall(\'[+-]?\\d+/\\d+\', exp)))\n        return \'%s/%s\' % (res.numerator, res.denominator)\n```\n<br>\n\nwith regx\n```py\n    def fractionAddition(self, exp):\n        res = sum(map(f, exp.replace(\'+\', \' +\').replace(\'-\', \' -\').split()))\n        return \'%s/%s\' % (res.numerator, res.denominator)\n```
[]