Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # author: Bartlomiej "furas" Burek (https://blog.furas.pl)
- # 2020.04.13
- text = "The link to your file is https://filecloud.com/12345/sample.png.html. If this link doesn't work, try https://filecloudlinks.com/12345/sample.png.html."
- pos = 0
- start = text.find("https", pos)
- end = text.find(".html", pos) + len(".html")
- while start != -1 and end != -1:
- print(text[start:end])
- pos = end
- start = text.find("https", pos)
- end = text.find(".html", pos) + len(".html")
Add Comment
Please, Sign In to add comment