I've seen some posts like this, but not exactly what I want to do.
How can I extract and delete URL links, and then remove them from plain text.
Example:
"Hello!!, I love http://www.google.es".
I want extract the "http://www.google.es", save it on a variable, and then, remove it from my text.
Finally, the text has to be like that:
"Hello!!, I love".
The URLs usually are the last "word" of the text, but not always.