I'm a total regex noob and have been struggling with this problem for a while today. I have some content with urls in them. I'd like to simply extract these urls but I am having trouble selecting up to the end of the url.
I have a code sample here: https://regex101.com/r/2GfzWO/1
As you can see it doesn't select correctly, and the last url is not selected at all. Terrible :/
If anyone could steer me in the right direction I would really appreciate it
Update:
To not depend on the above link alone I thought I'd add the regex here as well. Here is the original regex for this question:
/(?:http|ftp)s?:\/\/\S*\.\S*(?="|<)/gi
Here is the content I am testing with:
Here is some content and url <p>http://www.something.com/index.html</p>
<p>Some more content <a href="http://www.something.com/some/path/here.html">http://www.something.com/some/path/here.html</a></p>
Some more text http://www.something.com/something/somethingelse.html content
continued...