import re


def validate_field(value):
    """
    Validates major data types using regular expression matching.

    Converts String booleans from a csv to Python boolean values

    Also converts integer, and float values
    """

    if value.lower() == "true":
        return True

    elif value.lower() == "false":
        return False

    elif re.match(r"\d+$", value):
        return int(value)

    elif re.match(r"[-+]?\d+\.\d+$", value):
        return float(value)

    return value