- Code: Select all
s = "string_1" + some_value + "string_2"
t = "string_3" + some_value + "string_4"
# later that day
s1 = split(s, some_value)
t1 = split(t, some_value)
Strings 2,4 are device state names.
So I want to be reasonably sure that some_value isn't something that could appear in a state name (which would hose the split). The state names could come from any Indigo device, so I'm not in control of those.
My question is, what would folks do to ensure that 'some_value' is something unique that (at least probably) won't appear in string_2 or string_4?