Regex for URL with specified Domain or a signed URL

I want to match a url to replace it on demand in Python. the url looks like:[alplanumeric characters]

anyother url that isnt this way should not match.

For now, I'm using a general url regex and filtering based on the domain name.

regex I'm using is :


i want to replace this inside the src attributes and update the expired url on demand.

Any help would be appreciated. Thanks .

Back to Top