I have a :string BunchOfText
which contains a link which starts with https://
and ends with .com
.
I need to isolate that link and to put it in another string.
Any suggestions how?
EDIT :
My text looks like this:
It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum. https://mydomain/RANDOMGENERATEDTEXT.com Why do we use it?
I want to have a new string
string link ="https://mydomain/RANDOMGENERATEDTEXT.com"
By the time of this edit, user : serhiyb, gave me a perfect answer!