[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Patterns
- From: Hugo Musso Gualandi <hgualandi@...>
- Date: Thu, 15 Dec 2022 01:31:38 +0100
The problem might be easier if you concatenate a "/" to the end of the
topic string before you match it. That way "/sport/.*" should work.
Suppose the topic filter "/sport/#" and these published message topics:
Only the first three are allowed to match, so "/sport.*" is not an
option as that would match the forth one as well. On the other hand
"/sport/.*" would not match the first one.