import re


def _get_ref(s):
    """Convert given string into the reference level
    """
    match = re.search(r'[\d.]+', s)
    if match:
        return float(match.group())
    else:
        return ''