

@resource.register('mongodb://.+')
def resource_mongo(uri, collection_name=None, **kwargs):
    pattern = 'mongodb://(?P<hostport>.*:?\\d*)/(?P<database>\\w+)'
    d = re.search(pattern, uri).groupdict()
    return _resource_mongo(d, collection_name)

dataset/ETHPy150Open blaze/odo/odo/backends/mongo.py resource_mongo/original