import re


def parse_symbol(sym):
    """
    Parse an option symbol and return its components
    :param sym: the symbol to parse
    :return: group object with various parts of the symbol parsed
    """

    matcher = re.compile(r'^(.+)([0-9]{6})([PC])([0-9]+)$')
    return matcher.search(sym)