str = str.replace('?dfsdfsf=fdsfd.fdsfds/', 'uploads/')
i want to replace in url everything from ‘?’ to first appearance of ‘/’ afterwards ( including ) with ‘uploads/’
i want to get
https://websitename.com/uploads/d6113e4a-e789-44cd-8ba7-9684d29116dd.jpg
you can use regexp