<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def parse_domain(url):
 """ parse the domain from the url """

    domain_match = lib.DOMAIN_REGEX.match(url)
    if domain_match:
        return domain_match.group()