How can I get https://onion-rip.de
from
https://onion-rip.de/data/images/9d5faef5c26f69546f8/68c8a2a5fe0a9c5c221a2bb.jpg
and replace with https://test.de
. Output should be:
https://test.de/data/images/9d5faef5c26f69546f8/68c8a2a5fe0a9c5c221a2bb.jpg
Is any special function in Python for this?