activemq-artemis/docs/user-manual/en/wildcard-syntax.md

28 lines
969 B
Markdown
Raw Normal View History

2014-12-11 07:17:29 -05:00
# Understanding the ActiveMQ Wildcard Syntax
ActiveMQ uses a specific syntax for representing wildcards in security
settings, address settings and when creating consumers.
The syntax is similar to that used by [AMQP](http://www.amqp.org).
2015-01-21 13:46:15 -05:00
An ActiveMQ wildcard expression contains words delimited by the character
'`.`' (full stop).
The special characters '`#`' and '`*`' also have special meaning and can
take the place of a word.
The character '`#`' means 'match any sequence of zero or more words'.
The character '`*`' means 'match a single word'.
So the wildcard 'news.europe.\#' would match 'news.europe',
'news.europe.sport', 'news.europe.politics', and
'news.europe.politics.regional' but would not match 'news.usa',
'news.usa.sport' nor 'entertainment'.
The wildcard 'news.\*' would match 'news.europe', but not
'news.europe.sport'.
The wildcard 'news.\*.sport' would match 'news.europe.sport' and also
'news.usa.sport', but not 'news.europe.politics'.