Yes, the placement of the '' fixed the issue for me 🙂
I've since used a substring in my script as some of the entries had up to 4 URLS in. I now have 4separate fields to work with, with 4 of the above expressions for each URL (I may join them, yet to decide).
Would you know how to make each expression conditional, because as it stands, if there is no link in the entry, I'm still getting a text representation from the expression which could be confusing to some. Pic attached