import re


def binary_conversion(txt):
    """Convert binary txt to ascii string."""
    if len(txt) % 8 > 0:
        raise ValueError(f"txt length is not base 8. The value of txt:  {txt}")
    ascii_message = "".join([chr(int(byte, 2))
                             for byte in re.findall(r"\d{8}", txt)]
                            )
    return ascii_message