I went here: https://regexr.com/ and searched and found the following
/[-a-zA-Z0-9@:%+.~#?&//=]{2,256}.[a-z]{2,4}\b(/[-a-zA-Z0-9@:%+.~#?&//=]*)?/gi
if you test your string you will see it work. However trusting nobody very much I went to verify it here: https://regex101.com/ and it told me that the backslashes needed escaping so I got the following