lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]




Suppose the topic filter "/sport/#" and these published message topics:
/sport
/sport/racing
/sport/racing/champion
/sporting

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.

Any ideas?

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.