import re


def is_hexstr(text):
    """
    Return True if the text passed is a hex string.

    :param str text: Hex chars including the '0x' at the begining.

    :returns: True if all chars are hex
    """
    return re.match('^0x[0-9a-f]+$', text, re.IGNORECASE)