import re


def url_to_document_id(url):
    """Convert a URL to a document ID usable with i14y.

    Replaces slashes, colons, and spaces with underscores.
    """
    return re.sub('[/: ]', '_', url)