1 2 3 4 5 6 | text = "text1\ntext2\nhttp://url.com/bla1/blah1/\ntext3\ntext4\nhttp://url.com/bla2/blah2/\ntext5\ntext6" import re text = re.sub(r'^https?:\/\/.*[\r\n]*', '', text, flags=re.MULTILINE) print text |
-
upload with new input
-
result: Success time: 0.01s memory: 7728 kB returned value: 0
today stats: 2 new unfollowers via http://t.co/pvht4nucri
text1 text2 text3 text4 text5 text6
-
result: Success time: 0.01s memory: 7728 kB returned value: 0
http://t.co/pvht4nucri
text1 text2 text3 text4 text5 text6
-
result: Success time: 0.08s memory: 8832 kB returned value: 0
http://google.com
text1 text2 text3 text4 text5 text6
-
result: Success time: 0.01s memory: 7728 kB returned value: 0
hello http://www.google.com helelo
text1 text2 text3 text4 text5 text6
-
result: Success time: 0.01s memory: 7728 kB returned value: 0
Homegrown talent missing on Signing Day: Throughout most of the day on Wednesday, the video scoreboard ... http://bit.ly/ztNRG0 Raleigh Desperation Day (February 13th) the most well known day in all mens life. @PaperChasinAL: Damn next Saturday tho Niggas was trynna get shit over with early Noel Gallagher: "Musicians are fucking idiots." - Yeah, Brian May - he's an idiot... an idiot who just so happens to be a professor?
text1 text2 text3 text4 text5 text6
-
result: Success time: 0.01s memory: 7728 kB returned value: 0
Theo Walcott is still shit, watch Rafa and Johnny deal with him on Saturday. its not that I'm a GSP fan, i just hate Nick Diaz. can't wait for february. Iranian general says Israel's Iron Dome can't deal with their missiles (keep talking like that and we may end up finding out) Talking about ACT's && SAT's, deciding where I want to go to college, applying to colleges and everything about college stresses me out. They may have a SuperBowl in Dallas, but Dallas ain't winning a SuperBowl. Not with that quarterback and owner. @S4NYC @RasmussenPoll
text1 text2 text3 text4 text5 text6
-
result: Success time: 0.09s memory: 10840 kB returned value: 0
dsflsdfjhttp://www.yahoo.com fsfsdfsdfsdfsfwww.x.co.in
text1 text2 text3 text4 text5 text6
-
result: Success time: 0.09s memory: 10928 kB returned value: 0
-
result: Success time: 0.08s memory: 10864 kB returned value: 0
text1 text2 text3 text4 text5 text6


