Can a regex be used in a DynamoDB query?

I want to use regex when querying a table. I tried to use it under KeyConditionExpression , but this is incorrect. Is there a way to do this with DynamoDB?

For example, my primary key is a string, and I want to get all the elements starting with A The KeyConditionExpression expression will look like "someKey = /^A/"

+5
source share
1 answer

No. DynamoDB does not support regex support.

The closest thing is CONTAINS and NOT_CONTAINS .

See the documentation .

+6
source

All Articles