Ad Widget

Collapse

Replacing a string in a Media?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ElementZero
    Junior Member
    • Jan 2021
    • 16

    #1

    Replacing a string in a Media?

    My {HOST.NAME} is FQDN which is fine in the web interface. I would like to remove the FQDN from my notifications though as I put it in my subject line. Is there any way to do this? I'm thinking something like

    {{HOST.NAME}.regsub("(^.*)(\.my\.test\.com),\1)}

    but it does not work. Is there any way to replace strings?
Working...