import re


def abstract_ark(ark):
    """Extract the ark with no qualifiers"""
    ARK_REGEX = re.compile(r'(ark:/\d{5}/[0-9bcdfghjkmnpqrstvwxz]+).*')
    m = ARK_REGEX.match(ark)
    if m is None:
        return m
    return m.group(1)