1 2 3 4 5 | from urlparse import urlparse print urlparse('http://www.mydomain.com/hithere?image=2934').path.split('/')[1] print urlparse('http://www.mydomain.com/hithere/something/else').path.split('/')[1] |
ZnJvbSB1cmxwYXJzZSBpbXBvcnQgdXJscGFyc2UKCnByaW50IHVybHBhcnNlKCdodHRwOi8vd3d3Lm15ZG9tYWluLmNvbS9oaXRoZXJlP2ltYWdlPTI5MzQnKS5wYXRoLnNwbGl0KCcvJylbMV0KcHJpbnQgdXJscGFyc2UoJ2h0dHA6Ly93d3cubXlkb21haW4uY29tL2hpdGhlcmUvc29tZXRoaW5nL2Vsc2UnKS5wYXRoLnNwbGl0KCcvJylbMV0K
-
upload with new input
-
result: Success time: 0.02s memory: 6740 kB returned value: 0
hithere hithere


