Definition:
Back to the main index of this glossary
>>> import re
>>> y = re.split(':/{1,3}', 'ftp://python.about.com')
>>> print y
['ftp', 'python.about.com']
>>> y = re.split(':/{1,3}', 'ftp:/python.about.com')
>>> print y
['ftp', 'python.about.com']
>>> y = re.split(':/{1,3}', 'ftp:///python.about.com')
>>> print y
['ftp', 'python.about.com']
>>> y = re.split(':/{1,3}?', 'ftp:///python.about.com')
>>> print y
['ftp', '//python.about.com']
>>> y = re.split(':/{1,3}?', 'ftp://python.about.com')
>>> print y
['ftp', '/python.about.com']
>>> y = re.split(':/{1,3}?', 'ftp:/python.about.com')
>>> print y
['ftp', 'python.about.com']
Back to the main index of this glossary
