🎄 Happy Holidays! 🥳

Most of Solace is closed December 24–January 1 so our employees can spend time with their families. We will re-open Thursday, January 2, 2024. Please expect slower response times during this period and open a support ticket for anything needing immediate assistance.

Happy Holidays!

Please note: most of Solace is closed December 25–January 2, and will re-open Tuesday, January 3, 2023.

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