Regex for Checking for at Least One Uppercase Letter
Tests whether a string contains at least one uppercase letter anywhere.
Published October 11, 2026
Tests whether a string contains at least one uppercase letter anywhere.
Key points
- Commonly combined with other checks (lowercase, digit, symbol) to enforce password complexity rules
Example
.*[A-Z].*