I'm using the message_callback_add()-method of PahoMQTT to filter the messages by topic and would like to be a bit more specific.
Example topic to get the color of a banana:
fruits/banana/color, syntax: fruits/+/+.
I'd like to listen only to the fruits banana and apple. Currently I filter it manually, but I'd prefer to have a syntax like: fruits/<banana|pear>/+.
Does something like that exist? I only know about wildcard (#) and single level (+) placeholders.