import re


def get_callback_id(text):
    # type: (str) -> str
    """Attempts to extract the callback identifier from the given text"""
    idx = re.search(r"__doPostBack\('(.*)',", text)
    return idx.group(1) if idx else ""