I am trying to create and application that automatically filters links from strings. I have a JSON with all the mainstream domain endings like .com, .net, .org, etc.
If I had a string similar to "The link is test.com", how would I filter it to just the link? I need this to work for any sentence though, the sentence above is just an example. Would the method also work with links such as test.com/test123?