I have list of phone numbers of user’s contacts, and I want to query any user that his phone number is in this list.
I need something like this:
val query = ParseUser.getQuery()
val userContactsPhoneNumbers: List<String> = getAllContactsPhoneNumbers()
val phoneNumberRegexes = userContactsPhoneNumbers.map { Pattern.quote(it) }
query.builder.addCondition("phoneNumber", "\$regex", phoneNumberRegexes)
query.findAll()
but this throws bad regex exception and doesn’t work!