import re


def baseOfBaseCode(baseCode):
    """
    Return the base (jrnlCode) of the baseCode

    >>> print baseOfBaseCode("IJP.001")
    IJP
    >>> print baseOfBaseCode("IJP001")
    IJP
    >>> print baseOfBaseCode("JOAP221")
    JOAP
    >>> print baseOfBaseCode("ANIJP-IT.2006")
    ANIJP-IT
    >>> print baseOfBaseCode("anijp-it.2006")
    ANIJP-IT

    """
    retVal = re.split("\.|[0-9]", baseCode.upper())
    return retVal[0]