JSFiddle - React, Tailwind, and code Playground
by j08691
JavaScript
var s = 'Washington D.C. is a nice place.';
var foo = s.match(/[A-Z]\./g,s);
console.log(foo.length);
by j08691
var s = 'Washington D.C. is a nice place.';
var foo = s.match(/[A-Z]\./g,s);
console.log(foo.length);