题解 | #统计大写字母个数#
统计大写字母个数
http://www.nowcoder.com/practice/434414efe5ea48e5b06ebf2b35434a9c
while(line = readline()) {
let reg = new RegExp('[A-Z]', 'g')
const result = line.match(reg) ? line.match(reg).length : 0;
console.log(result);
}