Binary Agents what is wrong with my RegExpr

Tell us what’s happening:
Hello,
I’m trying to convert binary to decimal
and I would like to split the str argument but something is wrong with my RegExp

I can’t catch what is wrong with it.
Myb somebody give me some advice?

Your code so far

  
   var regEx = /\d+\s*/g;
   var splitStr = str.split(regEx);
   //var a = parseInt(str, 2);



console.log(splitStr); // 51
  return splitStr;
}

binaryAgent("01000001 01110010 01100101 01101110 00100111 01110100");

Your browser information:

Your Browser User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.139 Safari/537.36.

Link to the challenge:
https://www.freecodecamp.org/challenges/binary-agents

I have Solved it not need help :slight_smile: