Write a regular expression which matches a given string consisting of three non-negative, space-separated integers if and only if the last integer is the sum of the previous two. Answers may be for integers of any numeral system with radix between 2 and 10.
Test cases
These should fail:
0 1 2
10 20 1000
These should match:
10 20 30
28657 46368 75025
0 0 0
Rules
Your answer should consist of a single regex, without any additional code (except, optionally, a list of regex modifiers required to make your solution work). You must not use features of your language's regex flavour that allow you to invoke code in the hosting language (e.g. Perl's e modifier).
Please specify your regex flavour in your answer.
This is regex golf, so the shortest regex in bytes wins. If your language requires delimiters (usually /.../) to denote regular expressions, don't count the delimiters themselves. If your solution requires modifiers, add one byte per modifier.
Credits to Martin Ender and jaytea for the regex-golfing rules.
I have reason to believe it's possible based on the solution of Martin Ender for finding and incrementing integers with regex.
/e
modifier only applies to substitutions, and is not the only way to run external code. Also this disqualifies Perl 6 entirely as a regex is just a method with additional syntax. (The reason is it makes regexes easier to read and write) As a result all of the features needed in archaic regexes aren't needed (or included) as you just put in Perl 6 code. (meaning it probably isn't possible to do this challenge if you just limit to regex specific code)/^(\d+)**3%' '$ <?{$0[2]==[+] $0[0,1]}>/
or/^(\d+)' '(\d+)' '(\d+)$ <?{$2==$0+$1}>/
or/^(\d+)' '(\d+){}" {$0+$1}"$/
\$\endgroup\$