furas

search url

Apr 13th, 2020
258
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. 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."
  2.  
  3. pos = 0
  4. start = text.find("https", pos)
  5. end   = text.find(".html", pos) + len(".html")
  6.  
  7. while start != -1 and end != -1:
  8.     print(text[start:end])
  9.  
  10.     pos = end
  11.     start = text.find("https", pos)
  12.     end   = text.find(".html", pos) + len(".html")
RAW Paste Data