Replace / to _ string

Hi all,

Struggling to understand icinga2 script language. I have a requirement to replace / with _ for a string in a variable. I thought something like

  vars.testnew = test.replace('/' , '_')

Did you try using " instead of ’ ?

Antony.

i thought i did :). That works . Thanks - simple things .