Can you do string manipulation on variables?

Let’s say I have a variable that i reference with

${urls}

i query this using something like against my logs

|~ “${urls}

I am trying to do some string manipulation on the urls variable. for instance i want to replace all , with | and { with ( and } with ) so that i have a regex to match against all these different urls.

I am trying to do this with regexReplaceAll but I can’t seem to find a solution. is it possible to do this?

thanks all.

I done a pipe on the data link

${__value.raw:pipe}