import re


def clean_bw(bandwidth: str) -> float:
    """
    Convert the bandwidth into an equivalent bytes/second result.

    Parse the bandwidth value from the input string and convert the value from
    a larger unit to an equivalent operations/second, if applicable.

    Parameters
    ----------
    bandwidth : str
        A ``string`` of the bandwidth and unit from the test.

    Returns
    -------
    float
        Returns a ``float`` of the final bandwidth in bytes/second.
    """
    number = float(re.findall(r'(\d+(?:\.\d+)?)', bandwidth)[0])
    if 'GB/s' in bandwidth:
        bytes_per_second = number * 1e9
    elif 'MB/s' in bandwidth:
        bytes_per_second = number * 1e6
    elif 'kb/s' in bandwidth.lower():
        bytes_per_second = number * 1e3
    else:
        bytes_per_second = number
    return bytes_per_second