Regular Expression For Uppercase Letters

A regular expression to match all uppercase letters in text.

/[A-Z\s]+/

Matches:

  • AAAAAA
  • AAAbbb

Non-Matches:

  • aaaaaa

See Also:

Regex Is Copied!