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 https://docs.influxdata.com/kapacitor/v1.5/tick/expr/#string-functions works on fields/tags also?

One example will be helpful.