Use regex instead of eq in query()