Java Regex Number From String To Binary Python W3schools