Maybe this would be better, a single line to express either 0b or something else?
               /^   total               \s \n
                    (\s*\d+(\.\d+)?k?b  \s \n)+ $/