[rabbitmq-discuss] Permissions for aliveness-test user

Jean Paul Galea ninuhadida at gmail.com
Mon Nov 26 11:03:47 GMT 2012


On 11/26/2012 11:50 AM, Matthias Radestock wrote:
> It's not fine; without the grouping it matches everything.
>
>  > re:run("foo", "^aliveness-test|$", [{capture, none}]).
> match
>
>> It seems that round brackets are not
>> supported by the regex engine and are taken as literals instead.
>
> Grouping *is* supported:
>
>  > re:run("aliveness-test", "^(aliveness-test|)$", [{capture, none}]).
> match
>  > re:run("foo", "^(aliveness-test|)$", [{capture, none}]).
> nomatch
>
> Regards,
>
> Matthias.

Hmm, correct - I was mistaken. Thanks for clearing it up!

Jean Paul


More information about the rabbitmq-discuss mailing list