import re


def get_pkgver(pkginfo):
    """Extracts the APK version from pkginfo; returns string."""
    
    try:
        pkgver = re.findall("versionName=\'(.*?)\'", pkginfo)[0]
        pkgver = "".join(pkgver.split()).replace("/", "")
    except:
        pkgver = "None"
    
    return pkgver