Skip to content

Filtering data

Keyword: match

Prefs offers a fairly basic matching functionality to filter out values during .read() or .delete() operations. Filter applies to values only.


To retrieve all values from a list named "signups", that end with letters 'yahoo.com':

.list("signups").match("%yahoo.com").read()

To delete all values from a list named "products", that start with 'SKU 58':

.list("products").match("SKU 58%").delete()