About Me

My photo
Drum & Bass Producer, Software Developer, Love my Cats

snippet: javascript: count occurrences of string in string

javascript snippet for getting the count of occurrences of a string within a string

"input to find in".match(/find/g || []).length