[rabbitmq-discuss] Missing ^ on access control doc page regex example?

Emile Joubert emile at rabbitmq.com
Mon Mar 18 17:04:05 GMT 2013


Hi James,

On 18/03/13 16:22, James Gardner wrote:
> In the RabbitMQ.com documentation, under Access Control, paragraph six, 
> it gives this as an example of a regex:
> '^amq\.gen.*|amq\.default$'

The regular expression syntax and semantics available in RabbitMQ
resemble those of Perl and is based on PCRE. In that flavour of RE the
example is correct - the alternate options are all subject to the
anchors while matching.

> Shouldn't it be
> '^(amq\.gen.*|amq\.default)$'

The expression is already equivalent to this one.



-Emile





More information about the rabbitmq-discuss mailing list