function getMatches(regEx, content) {
  let results = [];
  let myArray;
  while ((myArray = regEx.exec(content)) !== null) {
    results.push(myArray);
  }
  return results;
}
Gets all of the regEx match on a string

@param {RegEx} regEx The regex to test.
@param {string} content The content to search.
@return {Array} The regex matches.