title: Swift regex for checking if string has at least one uppercase letter
body: <p>I have tried several things like:</p>
  
  <pre><code>^(?=.*?[A-Z])
  ^(?=.*?[A-Z])$
  ^(.*?[A-Z])$
  </code></pre>
  
  <p>nothing works</p>
  
  <pre><code>static func atLeastOneUpperCase(_ input: String) -&gt; Bool {
      return NSPredicate(format: "SELF MATCHES %@", upperCaseRegex).evaluate(with: input)
  }
  </code></pre>
  
  <p>The input should be one of the above.</p>