Update queries with regexp