(subject)
return re.match(r"\A[0-9a-fA-Fx]+\Z", subject) is not None
Checks if the provided string is hex encoded

    >>> isHexEncodedString('DEADBEEF')
    True
    >>> isHexEncodedString('test')
    False
Checks if the provided string is hex encoded
Checks if the provided string is hex encoded
def isHexEncodedString(subject):
    """
    Checks if the provided string is hex encoded

    >>> isHexEncodedString('DEADBEEF')
    True
    >>> isHexEncodedString('test')
    False
    """

    return re.match(r"\A[0-9a-fA-Fx]+\Z", subject) is not None
def isHexEncodedString ( subject ) : return re . match ( r"\A[0-9a-fA-Fx]+\Z" , subject ) is not None