I need help creating a Regex that will match all urls for example, please do not close question as a duplicate as I have been looking for what i need for a long time, and none of the answers i have seen have given an answer that solves my problem.
website.com
www.website.com
with also anything trailing
www.website.com/path-to-something
I am coding something that shortens any url, but to do so, first i need to match them all.
Thanks