Delete everything after second forward slash in URL
I am storing image urls in my database from Uploadcare. Im reading their api documentation on how to delete files, and I'm adding it to my function stack.
The urls in my data base look like this:
[Screen Shot 2022-09-14 at 2.41.21 PM.png]
In order to delete the image, I need to pass through the file 'UUID'
which is is underlined in red...
[Screen Shot 2022-09-14 at 2.36.25 PM.png]I was able to use filters to extract out the path of the url, however is there a filter or way to isolate just the UUID and remove everything else?
[Screen Shot 2022-09-14 at 2.39.43 PM.png]
Other
2 replies