search and replace a string in the clipboard?

Hi
I have a process in Hazel where I rename a screenshot, generate a dropbox link (via a workflow) and move the link to the clipboard. This is all based on one hazel workflow with rules. I need to change in the generated link each time a string from `dl=0` to `raw=1`
ie:
`https://www.dropbox.com/s/4uu2fsrr8g9se33/ppic8.png?dl=0`
to
`https://www.dropbox.com/s/4uu2fsrr8g9se33/ppic8.png?raw=1`
how does one do so in Hazel as part of my rules? is AppleScript the only way to do so? And if so are there any examples anyone has?
thx so much in advance
Z
I have a process in Hazel where I rename a screenshot, generate a dropbox link (via a workflow) and move the link to the clipboard. This is all based on one hazel workflow with rules. I need to change in the generated link each time a string from `dl=0` to `raw=1`
ie:
`https://www.dropbox.com/s/4uu2fsrr8g9se33/ppic8.png?dl=0`
to
`https://www.dropbox.com/s/4uu2fsrr8g9se33/ppic8.png?raw=1`
how does one do so in Hazel as part of my rules? is AppleScript the only way to do so? And if so are there any examples anyone has?
thx so much in advance
Z