Skip to content
This repository has been archived by the owner on Sep 6, 2023. It is now read-only.

The problem with regexp in filter #113

Open
perrfect opened this issue Feb 13, 2020 · 0 comments
Open

The problem with regexp in filter #113

perrfect opened this issue Feb 13, 2020 · 0 comments

Comments

@perrfect
Copy link

Hi.
I have some queues in the rabbitMQ, about 1000:

ha-collector-data-test2
ha-collector-data-1434
ha-collector-data-45-test3
ha-collector-data-terty4
ha-collector-data-341
etc.

And i need filter this queues. For example:
FILTER='[{"name": "ha-collector-data-test2"}, {"name": "ha-collector-data-1434"}, {"name": "ha-collector-data-45-test3"}, {"name": "ha-collector-data-terty4"} ]'

But, describe every queues in a separate name it is difficult

So, which a regular expression should i use for my queues which have same start names? I use, but it is wrong:

FILTER='{"name": "ha-collector-data-[a-zA-Z0-9]{1,100}"}'

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant