String manipulation on field or tag

Hi,

I have a tag with IP addresses separated by ‘~’.

An example is 192.168.33.183~125.21.176.82.

In my TICKscript, I want to extract 125.21.176.82. How can I do it?

Will the string functions mentioned here Lambda expressions | Kapacitor 1.5 Documentation works on fields/tags also?

One example will be helpful.