Count the occurrences of a single character in a string.
var matcher = /e/g;
var testString = "We the People of the United States, in Order to form a more perfect Union, establish Justice, insure domestic Tranquility, provide for the common defence,promote the general Welfare, and secure the Blessings of Liberty to ourselves and our Posterity, do ordain and establish this Constitution for the United States of America.";
Ready to run.
You can edit these tests or add more tests to this page by appending /edit to the URL.