function getHtmlAttributeRe(name) {
	return new RegExp(`\\s${name}(?:\\s*=\\s*['"]([^'"]*)['"])?`, "iu");
}
Creates a regex to match HTML attributes
@param {string} name The attribute name to match
@returns {RegExp} Regular expression for matching the attribute