Match (regex) incoming message topic to a list of topics (Python)

MrSmart
MrSmart Member Posts: 29 ✭✭✭
edited August 2023 in General Discussions #1

Hi,

I have a queue which is internally subscribed to various topics. When I read from this queue I can retrieve the original topic.

I have a list of actions in my application that run based on whether or not this topic matches that entry:

message topic:
cars/toyota

List of topic actions:
cars/bmw
>
cars/>
cars/*/>

I think I need a regex that checks if any of these topic actions matches the message topic.

I think I need to replicate Solace's internal topic matching, is that regex public by any chance?

Tagged:

Comments