There was explained on how to get a message checked for its string. But in this case it must be exactly the right string, what do I have to do if I have to check if the string is just inside the a bigger string?
In my concrete case I want to test if the msg.topic contains 2029FD or 7085AC and the topic looks like this:
shelly.0.SHPLG-S#2029FD#1.Relay0.Switch
or
shelly.0.SHPLG-S#7085AC#1.Relay0.Switch
This switch node will have multiple other topics going in. So the "contains" option will not help because those 2 should go to the same output.
Sure I can do it with the looooooooooooooong string but it is my goal to make it as clean as possible
EDIT: added the description why contains isn't a solution for me
thank you, but this won't help because I have 8 strings coming in and 2 of them should go to the same output. Sry that wasn't told you with my original post
That was one solution from a guy in the post I linked... but thought that it is possible with the regex.
Regex seems not a thing most people like, because it is complicated right
Ok, I did the part with the coffee, because I have no dog I found the solution
was too simple... sometimes I start to think to complicated than the solution would be...