How to Use regexp to Find Keywords That Are All Lowercase

Does anyone know the regex syntax to find all keyword fields for a string that do not contain any uppercase characters? I tried this as part of an aggregation filter and it did not work:

{ "regexp": {"segments.anchor.text.keyword": "^[^A-Z]+$"}}

This filter does not throw any errors but it returns zero results and I know for a fact that there are lots of anchor.text.keyword fields in the index that are all lowercase. If I remove this filter, the aggregation returns the expected results. Any help that anyone might be able to provide would be appreciated. Thanks.

Kevin

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.