import re


def regex_extractor(text, url):
    """
    Extracts RDF segments from a textblock; returns a list of strings.
    """
    # compile the RegEx for extracting RDF
    rdf_regex = re.compile("<rdf:rdf.*?>.*?</rdf:rdf>",
                           re.IGNORECASE|re.DOTALL|re.MULTILINE)

    # extract the RDF bits from the incoming text
    matches = []
    text = text.strip()

    try:
       return rdf_regex.findall(text)
    except:
       return []