#POSIX sh + tr + dc, 27 25 bytes
POSIX sh + tr + dc, 27 25 bytes
dc -e "0d`tr -sc 0-9 +`p"
Converts any run of non-digits (including the terminating newline) to +
operator, pushes two zeros onto the stack (in case input begins with non-digit), adds them all and prints the result. There may be an extra zero remaining at bottom of stack, but we don't care about that.