def getCoreVersion(extensionTuple):
    if (not extensionTuple[0]):
        return None
    ptrn = (('\\/\\/\\s*' + extensionTuple[0]) + '\\s+(DEVICE|INSTANCE)\\s+([0-9_]+)')
    coreVersion = re.search(ptrn, extensionTuple[1], re.I)
    if (coreVersion != None):
        return ([coreVersion.group(1)] + [int(number) for number in coreVersion.group(2).split('_')[:3]])
    return None
def getCoreVersion(extensionTuple):
    if (not extensionTuple[0]):
        return None
    ptrn = (('\\/\\/\\s*' + extensionTuple[0]) + '\\s+(DEVICE|INSTANCE)\\s+([0-9_]+)')
    coreVersion = re.search(ptrn, extensionTuple[1], re.I)
    if (coreVersion != None):
        return ([coreVersion.group(1)] + [int(number) for number in coreVersion.group(2).split('_')[:3]])
    return None