Hi guys
I'm trying to work with tags for the first time in the combination with triggers and I'm having some difficulty setting this up.
This is what I have set up: {{HOST.NAME}.regsub("NET-([A-Z]+)", \1)}
Host name: NET-MEI-SWI-TEST
What I'm trying to sort out: MEI
What am I doing wrong? I tested the regex with regex101 and it seem to work there.
Thanks in advance!
I'm trying to work with tags for the first time in the combination with triggers and I'm having some difficulty setting this up.
This is what I have set up: {{HOST.NAME}.regsub("NET-([A-Z]+)", \1)}
Host name: NET-MEI-SWI-TEST
What I'm trying to sort out: MEI
What am I doing wrong? I tested the regex with regex101 and it seem to work there.
Thanks in advance!
Comment