function getElementsByTagRegex(container, regex) {
  return Array.from(container.getElementsByTagName('*')).filter((elem) => regex.test(elem.tagName));
}
@description Search elements as getElementsByTagName with regex instead of string.
@param {object} container - Element where execute research.
@param {RegExp} regex - Regex to search.
@returns {Array} Elements that match with regex.
@example
getElementsByTagRegex(document, /(cal:)?calendar-data/)