Advertisement
BobMe

print website name

Nov 4th, 2019
201
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. local kek = "https://scribble.io"
  2.  
  3. for i=1,#kek do
  4. if string.sub(kek,1,i):lower() == "https://" or string.sub(kek,1,i):lower() == "http://" then
  5. for k=i,#kek do
  6. if string.sub(kek,k,k+3):lower() == ".com" or string.sub(kek,k,k+3):lower() == ".tv" or string.sub(kek,k,k+3):lower() == ".net" or string.sub(kek,k,k+3):lower() == ".edu" or string.sub(kek,k,k+3):lower() == ".org" or string.sub(kek,k,k+3):lower() == ".io" then
  7. kek = string.sub(kek,i+1,k-1)
  8. end
  9. end
  10. end
  11. end
  12.  
  13. print(kek)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement