I have a bot that stores a file on the cloud, then gives me a link to the file like so:
>upload sample.png
>>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.
I would like to isolate the link (or both links) from the string. I tried with slice()
, but since the length of the link can change, this won't work. How can I detect and slice the "https" until ".html"?