How to know that string contains at least 2 upper case letters? For example these are valid strings \"Lazy Cat\", \"NOt very lazy cat\". Working with Java 1.7.
This regex works.
string.matches(".*[A-Z].*[A-Z].*")