SyntaxFix
Write A Post
Hire A Developer
Questions
You could also look at it from the other way around...
from urlparse import urlparse [el for el in ['text1', 'FTP://somewhere.com', 'text2', 'http://blah.com:8080/foo/bar#header'] if not urlparse(el).scheme]