Order of attributes and tags matters

Remove unused regexes