Capital letters in a sentence
- Regular expression
- [A-Z]
- Flags
- Test text
- The quick brown fox jumps over the lazy dog. It barked.
Result Matches: 2
Compiled as: /[A-Z]/g
Capture groups: 0
Characters matched: 2
Text length: 55
- Compiled /[A-Z]/g with the JavaScript RegExp engine (g is always on, so every match is found).
- Scanned 55 characters and found 2 matches.
The class [A-Z] finds the two capitals, T at index 0 and I at index 45.