def __init__(self, url):
        self._url = url
        if url.startswith('regex:'):
            self._regex = re.compile(url[6:])
        else:
            self._regex = re.compile(url.replace('.', '\.')\
                                     .replace('*', '.*'))
Create a new OEmbedUrlScheme instance.
dataset/ETHPy150Open abarmat/python-oembed/oembed/__init__.py/OEmbedUrlScheme.__init__