whole_func_string: function matchAll (regex, string) {
    let match
    let matches = []
    while ((match = regex.exec(string)) !== null) {
      delete match['index']
      delete match['input']
      matches.push(match)
    }
  
    return matches
  }
func_code_string: function matchAll (regex, string) {
    let match
    let matches = []
    while ((match = regex.exec(string)) !== null) {
      delete match['index']
      delete match['input']
      matches.push(match)
    }
  
    return matches
  }
func_documentation_string: Get all matches of a regex in a string as an array