Currently on regex101 and I'm using the below test string:
Sinkhole: Unknown, URLReputation: Risk unknown, URL: https://35.com/tail/123@#$%^, URLCategory: Unknown
What I'm trying to achieve using regex is to get a full match like below:
URL: https://35.com/tail/123@#$%^
The regex I'm using is detailed below:
URL:\s((http[s]?|ftp):\/)?\/?([^:\/\s]+)((\/\w+)*\/)([\w\-\.]+[^#?\s]+)(.*)?(#[\w\-]+)?$
Unfortunately, the regex above is capturing anything after the URL which is not what I need.
I'm new to regex and understand the basics but missing that last piece.