A regular expression to match all uppercase letters in text.
/[A-Z\s]+/
Matches:
AAAAAA
AAA
bbb
Non-Matches:
- aaaaaa
See Also:
Rate This Regex
User Review
( votes)Expression Flags
Flags | Description |
---|---|
i |
Ignore case sensitive. |
g |
Allows global search. |
m |
Allows multiline search. |