https://www.growthbook.io/ logo
#give-feedback
Title
# give-feedback
s

some-planet-44104

11/01/2022, 1:48 PM
Hi there. I’ve read the docs on the usage Growthbook PHP library and it states that the library uses mongoDb-like syntax for matching experiment conditions. However, it’s not exactly clear for me what condition I use for matching a regular expression. The documentation on MongoDb states that the $eq operator implicitly evaluates a regular expression if one is found in the value fields. But will it work the same in Growthbook or should I explicitly specify the $regex operator?
f

future-teacher-7046

11/01/2022, 1:50 PM
We only support a subset of MongoDB syntax. So you need to use the $regex operator
s

some-planet-44104

11/01/2022, 1:52 PM
Thanks!
14 Views