import re


def camel_to_snake(camel_str):
    """
    Converts a camelCaseString into a snake_case_string
    """
    regex = re.compile('([A-Z])')
    result = regex.sub(r'_\g<0>', str(camel_str))
    return result.lower()