This version of the regex is less permissive than the w3c documentation. . It matches only the common attribute syntax.