How to split off a URL?

i have url https://abcdefg.com/orderid=12345 and i need to split off the “12345” in to a resource i can use on another operation…how do i this?

Hi @howiehow

you can use the replace() function:

{{replace(1.URL; "https://abcdefg.com/orderid="; "")}}

Cheers,
Gijs

This will do the operation but you’ll need to use a set variable module to put the result in a variable that can be used elsewhere in your scenario.

It depends. You can also use the formula in your target module without the need of a variable.

If needed, then you can nest multiple formulas.

Cheers,
Gijs

True but the OP said

split off the “12345” in to a resource i can use on another operation

I assumed they meant module since modules generate operations. The vocabulary in Make is all over the place.