Open
Description
Is there an existing proposal for this?
- I have searched the existing proposals
Is your feature request related to a problem?
There is currently a single useful operator for string properties (==
and !=
). For use-cases that need more powerful pattern matching, the following operations would be useful:
- Checking that a string contains another string
- Checking that a string starts with another string or a character
- Doing pattern matching on a sub-section of an URI (example:
/var/log/foobar/*/*.log.
)
Describe the solution you'd like
A regex operator would solve many of those problems. We can use the following library to compile regexes without introducing additional dependencies to the broker:
https://github.com/bloomberg/bde/blob/d6674e1df52b62d66942ca318882f225d26104bf/groups/bdl/bdlpcre/bdlpcre_regex.h#L669
Alternatives you considered
No response