Hello!
I want to extract links of a text using RegExp. There is no HTML code in the text so I can't search for the tags "<a...
". How can I find the links, though?
Example:
"Please go to http://www.example.org/page1.html and click on ..."
I want to extract the text:
"http://www.example.org/page1.html"
As far as I know, a URL can contain the following characters:
a-z A-Z 0-9 /.#?=&+,@-_~
I hope you can help me. Thanks in advance!
The URL must start with "http" and before that, the must be a space or the beginning of the text.