twitter/util.py
def find_links(line):
    """Find all links in the given line. The function returns a sprintf style
    format string (with %s placeholders for the links) and a list of urls."""
    l = line.replace("%", "%%")
    regex = "(https?://[^ )]+)"
    return (
        re.sub(regex, "%s", l),
        [m.group(1) for m in re.finditer(regex, l)])
Find all links in the given line. The function returns a sprintf style
    format string (with %s placeholders for the links) and a list of urls.
Find all links in the given line. The function returns a sprintf style
format string (with %s placeholders for the links) and a list of urls.
Find all links in the given line . The function returns a sprintf style format string ( with %s placeholders for the links ) and a list of urls .
def find_links(line):
    l = line.replace("%", "%%")
    regex = "(https?://[^ )]+)"
    return (
        re.sub(regex, "%s", l),
        [m.group(1) for m in re.finditer(regex, l)])
def find_links ( line ) : l = line . replace ( "%" , "%%" ) regex = "(https?://[^ )]+)" return ( re . sub ( regex , "%s" , l ) , [ m . group ( 1 ) for m in re . finditer ( regex , l ) ] )
Find all links in the given line.
Find all links in the given line .
"""Find all links in the given line. The function returns a sprintf style
    format string (with %s placeholders for the links) and a list of urls."""
line