[SOLVED] Regex in rule trigger

Hi,
is there a way to use regex in rule triggers?

for example:

when
thing „zwave:.*“ changend from ONLINE to OFFLINE
…

Thx!

Did you see this section in the docs: Textual Rules | openHAB not sure why you want Regex there (but just in case, I have never seen regex used in triggers, don’t think that is possible)

Yes, i did. But it was not helpful to address my issue. I want to minimize the number of rules and instead of creating one rule for each device, I am looking for a better solution.

You don’t need regular expressions to avoid creating one Rule for each device. I’m really not even sure how using regular expressions in a Rule trigger would help achieve that goal.

Thank you for answer Rich!
Now I completly agree, that Regex is not the only way to avoid duplicate code :wink:

Regards,
Oliver