Regex To Check If The First Letter Is Uppercase

Category: Strings | Views Total: 20 views

A regular expression to match and validate if the first letter of a string is uppercase.

/^[A-Z][a-z0-9_-]{3,19}$/

Matches:

  • Regex
  • Pattern
  • Com

Non-Matches:

  • regex
  • pattern
  • com

See Also:

Rate This Regex
Sending
User Review
0 (0 votes)

Leave a Reply