Generate Regex Pattern From String To Binary