Regular Expression For Uppercase Letters

Category: Strings

A regular expression to match all uppercase letters in text.

/[A-Z\s]+/

Matches:

  • AAAAAA
  • AAAbbb

Non-Matches:

  • aaaaaa

See Also:

Rate This Regex
Sending
User Review
0 (0 votes)

Expression Flags

Flags Description
i Ignore case sensitive.
g Allows global search.
m Allows multiline search.