import re


def check_for_url(url: str) -> bool:
    """This function is for checking moodle calendar url

    Args:
        url (str): Moodle Calendar Address to be checked

    Returns:
        bool.  The return code::

          False -- If the url does not start with https and ends with recentupcoming
          True -- If the url is correct
    """
    checker = re.search("^https.*recentupcoming$", url)
    if checker:
        return True
    else:
        return False