You can use a regex with the case insensitive modifier, like stated here:
public ParseQuery<T> whereMatches(String key, String regex, String modifiers)
Add a regular expression constraint for finding string values that match the provided regular expression. This may be slow for large datasets.
Parameters:
key
- The key that the string to match is stored in.
regex
- The regular expression pattern to match.
modifiers
- Any of the following supported PCRE modifiers:
i
- Case insensitive search
m
- Search across multiple lines of inputReturns: Returns the query, so you can chain this call.