from typing import Optional
import re


def get_domain(url: str) -> Optional[str]:
    """
    Get domain part from url
    """
    match = re.search(r"([\w-]+\.)+(\w+)", url)
    return match.group(0) if match is not None else None