import re


def file_search(content):
    """Runs a targeted file search using regex on the passed string. re module required"""
    # Regex searches for relative and http file links, only looks for specified extensions due to efficiency
    files = re.findall(r"(?:http://)?[\(\)%\-/.\w]+(?:.docx|.pdf|.png|.gif|.jpg|.bmp|.jpeg)", content)
    return files