import re


def is_s3_file_url(file_url):
    """
    Match the s3 file regex match.
    """
    return re.match(
        r"^(https:|/api/method/frappe_s3_attachment.controller.generate_file)",
        file_url,
    )