title: How can I test if a string contains any uppercase letter using Java with regular expression?
body: <p>I want to use only regular expression</p>
  
  <pre><code>Raida =&gt; true
  raida =&gt; false
  raiDa =&gt; true
  </code></pre>
  
  <p>I have tried this :</p>
  
  <pre><code>   String string = "Raida"
     boolean bool = string.contains("?=.*[A-Z]");
  
     System.out.println(bool); 
  </code></pre>
  
  <p>but it is not working</p>