Want more features on Pastebin? Sign Up, it's FREE!
Guest

Regex Parsing XML

By: a guest on Jul 30th, 2014  |  syntax: None  |  size: 33.49 KB  |  views: 776  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. (?>\A((((?<XMLDECLOPEN><\?xml)((?<SPACE>([\x20\x09\x0D\x0A]+))(?<XMLDECLATTRNAME>version)((?<SPACE>([\x20\x09\x0D\x0A]+))?((?<EQUAL>=)(?<SPACE>([\x20\x09\x0D\x0A]+))?|(?<ERROR>)))(?(ERROR)|(((?<VERSIONNUMQUOTEOPEN>')((?<VERSION>1\.[0-9]+)|(?<ERROR>))(?(ERROR)|((?<VERSIONNUMQUOTECLOSE>')|(?<ERROR>))))|((?<VERSIONNUMQUOTEOPEN>")((?<VERSION>1\.[0-9]+)|(?<ERROR>))(?(ERROR)|((?<VERSIONNUMQUOTECLOSE>")|(?<ERROR>))))|(?<ERROR>))))(?(ERROR)|((?<SPACE>([\x20\x09\x0D\x0A]+))(?<XMLDECLATTRNAME>encoding)((?<SPACE>([\x20\x09\x0D\x0A]+))?((?<EQUAL>=)(?<SPACE>([\x20\x09\x0D\x0A]+))?|(?<ERROR>)))(?(ERROR)|(((?<ENCODINGDECLQUOTEOPEN>')((?<ENCODING>[A-Za-z][A-Za-z0-9._\-]*)|(?<ERROR>))(?(ERROR)|((?<ENCODINGDECLQUOTECLOSE>')|(?<ERROR>))))|((?<ENCODINGDECLQUOTEOPEN>")((?<ENCODING>[A-Za-z][A-Za-z0-9._\-]*)|(?<ERROR>))(?(ERROR)|((?<ENCODINGDECLQUOTECLOSE>")|(?<ERROR>))))|(?<ERROR>))))?)(?(ERROR)|((?<SPACE>([\x20\x09\x0D\x0A]+))(?<XMLDECLATTRNAME>standalone)((?<SPACE>([\x20\x09\x0D\x0A]+))?((?<EQUAL>=)(?<SPACE>([\x20\x09\x0D\x0A]+))?|(?<ERROR>)))(?(ERROR)|(((?<SDDECLQUOTEOPEN>')((?<STANDALONE>yes|no)|(?<ERROR>))(?(ERROR)|((?<SDDECLQUOTECLOSE>')|(?<ERROR>))))|((?<SDDECLQUOTEOPEN>")((?<STANDALONE>yes|no)|(?<ERROR>))(?(ERROR)|((?<SDDECLQUOTECLOSE>")|(?<ERROR>))))|(?<ERROR>))))?)(?(ERROR)|(?<SPACE>([\x20\x09\x0D\x0A]+))?((?<XMLDECLCLOSE>\?>)|(?<ERROR>))))?(?(ERROR)|(((?<COMMENTOPEN><!--)(?<COMMENT>(([\x09\x0A\x0D\x20-\uD7FF\uE000-\uFFFD-[-]]|[\uD800-\uDBFF][\uDC00-\uDFFF])|-([\x09\x0A\x0D\x20-\uD7FF\uE000-\uFFFD-[-]]|[\uD800-\uDBFF][\uDC00-\uDFFF]))+)?((?<COMMENTCLOSE>-->)|(?<ERROR>)))|((?<PIOPEN><\?)(?![Xx][Mm][Ll](([\x20\x09\x0D\x0A]+)|\?>))(?<PINAME>(([:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDBFF][\uDC00-\uDFFF])([:\-.0-9\xB7\u0300-\u036F\u203F-\u2040A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDBFF][\uDC00-\uDFFF])*))((?<SPACE>([\x20\x09\x0D\x0A]+))(?<OTHER>((?!\?>)([\x09\x0A\x0D\x20-\uD7FF\uE000-\uFFFD]|[\uD800-\uDBFF][\uDC00-\uDFFF]))+)?)?((?<PICLOSE>\?>)|(?<ERROR>)))|(?<SPACE>([\x20\x09\x0D\x0A]+))))*(?(ERROR)|((?<DTDDOCTYPEBRACKETOPEN><!)(?<DTDNAME>DOCTYPE)(?<SPACE>([\x20\x09\x0D\x0A]+))((?<DTDDOCTYPENAME>(([:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDBFF][\uDC00-\uDFFF])([:\-.0-9\xB7\u0300-\u036F\u203F-\u2040A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDBFF][\uDC00-\uDFFF])*))|(?<ERROR>))(?(ERROR)|((?<SPACE>([\x20\x09\x0D\x0A]+))(((?<DTDIDTYPE>SYSTEM)(?<SPACE>([\x20\x09\x0D\x0A]+))((((?<SYSTEMLITERALQUOTEOPEN>')(?<SYSTEMLITERAL>([\x09\x0A\x0D\x20-\uD7FF\uE000-\uFFFD-[']]|[\uD800-\uDBFF][\uDC00-\uDFFF])+)?((?<SYSTEMLITERALQUOTECLOSE>')|(?<ERROR>)))|((?<SYSTEMLITERALQUOTEOPEN>")(?<SYSTEMLITERAL>([\x09\x0A\x0D\x20-\uD7FF\uE000-\uFFFD-["]]|[\uD800-\uDBFF][\uDC00-\uDFFF])+)?((?<SYSTEMLITERALQUOTECLOSE>")|(?<ERROR>))))|(?<ERROR>)))|((?<DTDIDTYPE>PUBLIC)(?<SPACE>([\x20\x09\x0D\x0A]+))(((?<PUBIDLITERALQUOTEOPEN>")(?<PUBID>([\x20\x0D\x0Aa-zA-Z0-9\-'()+,./:=?;!*#@$_%])+)?((?<PUBIDLITERALQUOTECLOSE>")|(?<ERROR>))|(?<PUBIDLITERALQUOTEOPEN>')(?<PUBID>([\x20\x0D\x0Aa-zA-Z0-9\-()+,./:=?;!*#@$_%])+)?((?<PUBIDLITERALQUOTECLOSE>\')|(?<ERROR>)))|(?<ERROR>))(?(ERROR)|((?<SPACE>([\x20\x09\x0D\x0A]+))|(?<ERROR>)))(?(ERROR)|((((?<SYSTEMLITERALQUOTEOPEN>')(?<SYSTEMLITERAL>([\x09\x0A\x0D\x20-\uD7FF\uE000-\uFFFD-[']]|[\uD800-\uDBFF][\uDC00-\uDFFF])+)?((?<SYSTEMLITERALQUOTECLOSE>')|(?<ERROR>)))|((?<SYSTEMLITERALQUOTEOPEN>")(?<SYSTEMLITERAL>([\x09\x0A\x0D\x20-\uD7FF\uE000-\uFFFD-["]]|[\uD800-\uDBFF][\uDC00-\uDFFF])+)?((?<SYSTEMLITERALQUOTECLOSE>")|(?<ERROR>))))|(?<ERROR>)))))))?(?(ERROR)|(?<SPACE>([\x20\x09\x0D\x0A]+))?((?<DTDINTSUBSETBRACKETOPEN>\[)(?(ERROR)|((((?<DTDELEMENTDECLBRACKETOPEN><!)(?<DTDNAME>ELEMENT)(?<SPACE>([\x20\x09\x0D\x0A]+))((?<DTDELEMENTNAME>(([:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDBFF][\uDC00-\uDFFF])([:\-.0-9\xB7\u0300-\u036F\u203F-\u2040A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDBFF][\uDC00-\uDFFF])*))|(?<ERROR>))(?(ERROR)|((?<SPACE>([\x20\x09\x0D\x0A]+))|(?<ERROR>)))(?(ERROR)|(((?<CONTENTTYPE>EMPTY|ANY)|((?<DTDMIXEDBRACKETOPEN>\()(?<SPACE>([\x20\x09\x0D\x0A]+))?(?<DTDCONTENTTYPE>\#PCDATA)(?(ERROR)|((?<SPACE>([\x20\x09\x0D\x0A]+))?(?<DTDCPCONNECTOR>\|(?(_DTDCURRENTCPCONNECTOR)|(?<_DTDCURRENTCPCONNECTOR>)))(?<SPACE>([\x20\x09\x0D\x0A]+))?(?<DTDELEMENTCHILDNAME>(([:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDBFF][\uDC00-\uDFFF])([:\-.0-9\xB7\u0300-\u036F\u203F-\u2040A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDBFF][\uDC00-\uDFFF])*))))*(?<SPACE>([\x20\x09\x0D\x0A]+))?((?<DTDMIXEDBRACKETCLOSE>\))|(?<ERROR>))(?(ERROR)|(?(_DTDCURRENTCPCONNECTOR)(?<-_DTDCURRENTCPCONNECTOR>)((?<DTDCONTENTQUANTITY>\*)|(?<ERROR>))|(?<DTDCONTENTQUANTITY>\*)?))(?<-_DTDCURRENTCPCONNECTOR>)*)|((?<DTDCPBRACKETOPEN>\((?<_DTDCPDEPTH>)(?<_DTDCPCURRENTSIGN>))(?<_DTDSTATENEEDCP>)(?(ERROR)|(?(_DTDCPDEPTH)((?<SPACE>([\x20\x09\x0D\x0A]+))|(?(_DTDSTATENEEDCP)((?<DTDCPBRACKETOPEN>\((?<_DTDCPDEPTH>)(?<_DTDCPCURRENTSIGN>))|((?<DTDELEMENTCHILDNAME>(([:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDBFF][\uDC00-\uDFFF])([:\-.0-9\xB7\u0300-\u036F\u203F-\u2040A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDBFF][\uDC00-\uDFFF])*))|((?<PEREFOPEN>%)((?<PEREFNAME>(([:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDBFF][\uDC00-\uDFFF])([:\-.0-9\xB7\u0300-\u036F\u203F-\u2040A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDBFF][\uDC00-\uDFFF])*))|(?<ERROR>))(?(ERROR)|((?<PEREFCLOSE>;)|(?<ERROR>)))))(?(ERROR)|(?<DTDCONTENTQUANTITY>[?*+])?(?<-_DTDSTATENEEDCP>))|(?<ERROR>))|((?<DTDCPBRACKETCLOSE>\)(?<-_DTDCPDEPTH>)(?<-_DTDCPCURRENTSIGN>))(?<DTDCONTENTQUANTITY>[?*+])?|(?=[|,])((?<=\k<_DTDCPCURRENTSIGN>)(?<-_DTDCPCURRENTSIGN>)(?<_DTDCPCURRENTSIGN>(?<DTDCPCONNECTOR>[|,]))|(?<DTDCPCONNECTOR>\k<_DTDCPCURRENTSIGN>))(?<_DTDSTATENEEDCP>)|(?<ERROR>))))))*(?(ERROR)|(?(_DTDCPDEPTH)(?<ERROR>)))(?<-_DTDSTATENEEDCP>)*(?<-_DTDCPDEPTH>)*(?<-_DTDCPCURRENTSIGN>)*))|(?<ERROR>)))(?(ERROR)|(?<SPACE>([\x20\x09\x0D\x0A]+))?((?<DTDELEMENTDECLBRACKETCLOSE>>)|(?<ERROR>))))|((?<DTDATTRLISTDECLBRACKETOPEN><!)(?<DTDNAME>ATTLIST)(?<SPACE>([\x20\x09\x0D\x0A]+))((?<DTDATTLISTNAME>(([:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDBFF][\uDC00-\uDFFF])([:\-.0-9\xB7\u0300-\u036F\u203F-\u2040A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDBFF][\uDC00-\uDFFF])*))|(?<ERROR>))(?(ERROR)|((?<SPACE>([\x20\x09\x0D\x0A]+))(?<DTDATTRLISTNAME>(([:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDBFF][\uDC00-\uDFFF])([:\-.0-9\xB7\u0300-\u036F\u203F-\u2040A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDBFF][\uDC00-\uDFFF])*))((?<SPACE>([\x20\x09\x0D\x0A]+))|(?<ERROR>))(?(ERROR)|(((?<DTDATTRTYPE>CDATA)|(?<DTDATTRTYPE>IDREFS|IDREF|ID|ENTITIES|ENTITY|NMTOKENS|NMTOKEN)|(((?<DTDATTRTYPE>NOTATION)(?<SPACE>([\x20\x09\x0D\x0A]+))((?<DTDNOTATIONATTRTYPEBRACKETOPEN>\()|(?<ERROR>))(?(ERROR)|((?<SPACE>([\x20\x09\x0D\x0A]+))?(?<DTDNOTATIONATTRTYPENAME>(([:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDBFF][\uDC00-\uDFFF])([:\-.0-9\xB7\u0300-\u036F\u203F-\u2040A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDBFF][\uDC00-\uDFFF])*))|(?<ERROR>)))(?(ERROR)|((?<SPACE>([\x20\x09\x0D\x0A]+))?(?<DTDNOTATIONATTRTYPECONNECTOR>\|)(?<SPACE>([\x20\x09\x0D\x0A]+))?(?<DTDELEMENTCHILDNAME>(([:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDBFF][\uDC00-\uDFFF])([:\-.0-9\xB7\u0300-\u036F\u203F-\u2040A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDBFF][\uDC00-\uDFFF])*))))*(?<SPACE>([\x20\x09\x0D\x0A]+))?(?(ERROR)|((?<DTDNOTATIONATTRTYPEBRACKETCLOSE>\))|(?<ERROR>))))|((?<DTDENUMERATIONATTRTYPEBRACKETOPEN>\()((?<SPACE>([\x20\x09\x0D\x0A]+))?(?<DTDENUMERATIONNMTOKEN>(([:\-.0-9\xB7\u0300-\u036F\u203F-\u2040A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDBFF][\uDC00-\uDFFF])+))|(?<ERROR>))(?(ERROR)|((?<SPACE>([\x20\x09\x0D\x0A]+))?(?<DTDENUMERATIONATTRTYPECONNECTOR>\|)(?<SPACE>([\x20\x09\x0D\x0A]+))?(?<DTDENUMERATIONNMTOKEN>(([:\-.0-9\xB7\u0300-\u036F\u203F-\u2040A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDBFF][\uDC00-\uDFFF])+))))*(?<SPACE>([\x20\x09\x0D\x0A]+))?(?(ERROR)|((?<DTDENUMERATIONATTRTYPEBRACKETCLOSE>\))|(?<ERROR>))))))|(?<ERROR>)))(?(ERROR)|((?<SPACE>([\x20\x09\x0D\x0A]+))|(?<ERROR>)))(?(ERROR)|(((?<DTDATTRDECLDEFAULT>\#REQUIRED|\#IMPLIED)|((?<DTDATTRDECLDEFAULT>\#FIXED)(?<SPACE>([\x20\x09\x0D\x0A]+)))?(((?<ATTRVALUEQUOTEOPEN>')(?(ERROR)|((?<TEXT>([\x09\x0A\x0D\x20-\uD7FF\uE000-\uFFFD-[<&']]|[\uD800-\uDBFF][\uDC00-\uDFFF])+)|(((?<CHARREFOPEN>&\#)((?<CHARREFVALUE>[0-9]+|x[0-9A-Fa-f]+)|(?<ERROR>))(?(ERROR)|((?<CHARREFCLOSE>;)|(?<ERROR>))))|((?<ENTITYREFOPEN>&)((?<ENTITYREFNAME>(([:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDBFF][\uDC00-\uDFFF])([:\-.0-9\xB7\u0300-\u036F\u203F-\u2040A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDBFF][\uDC00-\uDFFF])*))|(?<ERROR>))(?(ERROR)|((?<ENTITYREFCLOSE>;)|(?<ERROR>)))))))*(?(ERROR)|((?<ATTRVALUEQUOTECLOSE>')|(?<ERROR>))))|((?<ATTRVALUEQUOTEOPEN>")(?(ERROR)|((?<TEXT>([\x09\x0A\x0D\x20-\uD7FF\uE000-\uFFFD-[<&"]]|[\uD800-\uDBFF][\uDC00-\uDFFF])+)|(((?<CHARREFOPEN>&\#)((?<CHARREFVALUE>[0-9]+|x[0-9A-Fa-f]+)|(?<ERROR>))(?(ERROR)|((?<CHARREFCLOSE>;)|(?<ERROR>))))|((?<ENTITYREFOPEN>&)((?<ENTITYREFNAME>(([:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDBFF][\uDC00-\uDFFF])([:\-.0-9\xB7\u0300-\u036F\u203F-\u2040A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDBFF][\uDC00-\uDFFF])*))|(?<ERROR>))(?(ERROR)|((?<ENTITYREFCLOSE>;)|(?<ERROR>)))))))*(?(ERROR)|((?<ATTRVALUEQUOTECLOSE>")|(?<ERROR>))))))|(?<ERROR>)))))*(?(ERROR)|(?<SPACE>([\x20\x09\x0D\x0A]+))?((?<DTDATTRLISTDECLBRACKETCLOSE>>)|(?<ERROR>))))|((?<DTDENTITYBRACKETOPEN><!)(?<DTDNAME>ENTITY)(?<SPACE>([\x20\x09\x0D\x0A]+))(((?<DTDENTITYNAME>(([:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDBFF][\uDC00-\uDFFF])([:\-.0-9\xB7\u0300-\u036F\u203F-\u2040A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDBFF][\uDC00-\uDFFF])*))(?(ERROR)|((?<SPACE>([\x20\x09\x0D\x0A]+))|(?<ERROR>)))(?(ERROR)|(((((?<ENTITYVALUEQUOTEOPEN>')(?(ERROR)|((?<TEXT>([\x09\x0A\x0D\x20-\uD7FF\uE000-\uFFFD-[%&']]|[\uD800-\uDBFF][\uDC00-\uDFFF])+)|((?<PEREFOPEN>%)((?<PEREFNAME>(([:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDBFF][\uDC00-\uDFFF])([:\-.0-9\xB7\u0300-\u036F\u203F-\u2040A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDBFF][\uDC00-\uDFFF])*))|(?<ERROR>))(?(ERROR)|((?<PEREFCLOSE>;)|(?<ERROR>))))|(((?<CHARREFOPEN>&\#)((?<CHARREFVALUE>[0-9]+|x[0-9A-Fa-f]+)|(?<ERROR>))(?(ERROR)|((?<CHARREFCLOSE>;)|(?<ERROR>))))|((?<ENTITYREFOPEN>&)((?<ENTITYREFNAME>(([:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDBFF][\uDC00-\uDFFF])([:\-.0-9\xB7\u0300-\u036F\u203F-\u2040A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDBFF][\uDC00-\uDFFF])*))|(?<ERROR>))(?(ERROR)|((?<ENTITYREFCLOSE>;)|(?<ERROR>)))))))*(?(ERROR)|((?<ENTITYVALUEQUOTECLOSE>')|(?<ERROR>))))|((?<ENTITYVALUEQUOTEOPEN>")(?(ERROR)|((?<TEXT>([\x09\x0A\x0D\x20-\uD7FF\uE000-\uFFFD-[%&"]]|[\uD800-\uDBFF][\uDC00-\uDFFF])+)|((?<PEREFOPEN>%)((?<PEREFNAME>(([:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDBFF][\uDC00-\uDFFF])([:\-.0-9\xB7\u0300-\u036F\u203F-\u2040A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDBFF][\uDC00-\uDFFF])*))|(?<ERROR>))(?(ERROR)|((?<PEREFCLOSE>;)|(?<ERROR>))))|(((?<CHARREFOPEN>&\#)((?<CHARREFVALUE>[0-9]+|x[0-9A-Fa-f]+)|(?<ERROR>))(?(ERROR)|((?<CHARREFCLOSE>;)|(?<ERROR>))))|((?<ENTITYREFOPEN>&)((?<ENTITYREFNAME>(([:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDBFF][\uDC00-\uDFFF])([:\-.0-9\xB7\u0300-\u036F\u203F-\u2040A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDBFF][\uDC00-\uDFFF])*))|(?<ERROR>))(?(ERROR)|((?<ENTITYREFCLOSE>;)|(?<ERROR>)))))))*(?(ERROR)|((?<ENTITYVALUEQUOTECLOSE>")|(?<ERROR>)))))|((((?<DTDIDTYPE>SYSTEM)(?<SPACE>([\x20\x09\x0D\x0A]+))((((?<SYSTEMLITERALQUOTEOPEN>')(?<SYSTEMLITERAL>([\x09\x0A\x0D\x20-\uD7FF\uE000-\uFFFD-[']]|[\uD800-\uDBFF][\uDC00-\uDFFF])+)?((?<SYSTEMLITERALQUOTECLOSE>')|(?<ERROR>)))|((?<SYSTEMLITERALQUOTEOPEN>")(?<SYSTEMLITERAL>([\x09\x0A\x0D\x20-\uD7FF\uE000-\uFFFD-["]]|[\uD800-\uDBFF][\uDC00-\uDFFF])+)?((?<SYSTEMLITERALQUOTECLOSE>")|(?<ERROR>))))|(?<ERROR>)))|((?<DTDIDTYPE>PUBLIC)(?<SPACE>([\x20\x09\x0D\x0A]+))(((?<PUBIDLITERALQUOTEOPEN>")(?<PUBID>([\x20\x0D\x0Aa-zA-Z0-9\-'()+,./:=?;!*#@$_%])+)?((?<PUBIDLITERALQUOTECLOSE>")|(?<ERROR>))|(?<PUBIDLITERALQUOTEOPEN>')(?<PUBID>([\x20\x0D\x0Aa-zA-Z0-9\-()+,./:=?;!*#@$_%])+)?((?<PUBIDLITERALQUOTECLOSE>\')|(?<ERROR>)))|(?<ERROR>))(?(ERROR)|((?<SPACE>([\x20\x09\x0D\x0A]+))|(?<ERROR>)))(?(ERROR)|((((?<SYSTEMLITERALQUOTEOPEN>')(?<SYSTEMLITERAL>([\x09\x0A\x0D\x20-\uD7FF\uE000-\uFFFD-[']]|[\uD800-\uDBFF][\uDC00-\uDFFF])+)?((?<SYSTEMLITERALQUOTECLOSE>')|(?<ERROR>)))|((?<SYSTEMLITERALQUOTEOPEN>")(?<SYSTEMLITERAL>([\x09\x0A\x0D\x20-\uD7FF\uE000-\uFFFD-["]]|[\uD800-\uDBFF][\uDC00-\uDFFF])+)?((?<SYSTEMLITERALQUOTECLOSE>")|(?<ERROR>))))|(?<ERROR>)))))(?(ERROR)|((?<SPACE>([\x20\x09\x0D\x0A]+))(?<DTDNDATA>NDATA)(?<SPACE>([\x20\x09\x0D\x0A]+))((?<DTDNDATANAME>(([:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDBFF][\uDC00-\uDFFF])([:\-.0-9\xB7\u0300-\u036F\u203F-\u2040A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDBFF][\uDC00-\uDFFF])*))|(?<ERROR>)))?)))|(?<ERROR>))))|((?<DTDENTITYTYPE>%)(?<SPACE>([\x20\x09\x0D\x0A]+))((?<DTDENTITYNAME>(([:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDBFF][\uDC00-\uDFFF])([:\-.0-9\xB7\u0300-\u036F\u203F-\u2040A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDBFF][\uDC00-\uDFFF])*))|(?<ERROR>))(?(ERROR)|((?<SPACE>([\x20\x09\x0D\x0A]+))|(?<ERROR>)))(?(ERROR)|(((((?<ENTITYVALUEQUOTEOPEN>')(?(ERROR)|((?<TEXT>([\x09\x0A\x0D\x20-\uD7FF\uE000-\uFFFD-[%&']]|[\uD800-\uDBFF][\uDC00-\uDFFF])+)|((?<PEREFOPEN>%)((?<PEREFNAME>(([:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDBFF][\uDC00-\uDFFF])([:\-.0-9\xB7\u0300-\u036F\u203F-\u2040A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDBFF][\uDC00-\uDFFF])*))|(?<ERROR>))(?(ERROR)|((?<PEREFCLOSE>;)|(?<ERROR>))))|(((?<CHARREFOPEN>&\#)((?<CHARREFVALUE>[0-9]+|x[0-9A-Fa-f]+)|(?<ERROR>))(?(ERROR)|((?<CHARREFCLOSE>;)|(?<ERROR>))))|((?<ENTITYREFOPEN>&)((?<ENTITYREFNAME>(([:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDBFF][\uDC00-\uDFFF])([:\-.0-9\xB7\u0300-\u036F\u203F-\u2040A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDBFF][\uDC00-\uDFFF])*))|(?<ERROR>))(?(ERROR)|((?<ENTITYREFCLOSE>;)|(?<ERROR>)))))))*(?(ERROR)|((?<ENTITYVALUEQUOTECLOSE>')|(?<ERROR>))))|((?<ENTITYVALUEQUOTEOPEN>")(?(ERROR)|((?<TEXT>([\x09\x0A\x0D\x20-\uD7FF\uE000-\uFFFD-[%&"]]|[\uD800-\uDBFF][\uDC00-\uDFFF])+)|((?<PEREFOPEN>%)((?<PEREFNAME>(([:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDBFF][\uDC00-\uDFFF])([:\-.0-9\xB7\u0300-\u036F\u203F-\u2040A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDBFF][\uDC00-\uDFFF])*))|(?<ERROR>))(?(ERROR)|((?<PEREFCLOSE>;)|(?<ERROR>))))|(((?<CHARREFOPEN>&\#)((?<CHARREFVALUE>[0-9]+|x[0-9A-Fa-f]+)|(?<ERROR>))(?(ERROR)|((?<CHARREFCLOSE>;)|(?<ERROR>))))|((?<ENTITYREFOPEN>&)((?<ENTITYREFNAME>(([:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDBFF][\uDC00-\uDFFF])([:\-.0-9\xB7\u0300-\u036F\u203F-\u2040A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDBFF][\uDC00-\uDFFF])*))|(?<ERROR>))(?(ERROR)|((?<ENTITYREFCLOSE>;)|(?<ERROR>)))))))*(?(ERROR)|((?<ENTITYVALUEQUOTECLOSE>")|(?<ERROR>)))))|(((?<DTDIDTYPE>SYSTEM)(?<SPACE>([\x20\x09\x0D\x0A]+))((((?<SYSTEMLITERALQUOTEOPEN>')(?<SYSTEMLITERAL>([\x09\x0A\x0D\x20-\uD7FF\uE000-\uFFFD-[']]|[\uD800-\uDBFF][\uDC00-\uDFFF])+)?((?<SYSTEMLITERALQUOTECLOSE>')|(?<ERROR>)))|((?<SYSTEMLITERALQUOTEOPEN>")(?<SYSTEMLITERAL>([\x09\x0A\x0D\x20-\uD7FF\uE000-\uFFFD-["]]|[\uD800-\uDBFF][\uDC00-\uDFFF])+)?((?<SYSTEMLITERALQUOTECLOSE>")|(?<ERROR>))))|(?<ERROR>)))|((?<DTDIDTYPE>PUBLIC)(?<SPACE>([\x20\x09\x0D\x0A]+))(((?<PUBIDLITERALQUOTEOPEN>")(?<PUBID>([\x20\x0D\x0Aa-zA-Z0-9\-'()+,./:=?;!*#@$_%])+)?((?<PUBIDLITERALQUOTECLOSE>")|(?<ERROR>))|(?<PUBIDLITERALQUOTEOPEN>')(?<PUBID>([\x20\x0D\x0Aa-zA-Z0-9\-()+,./:=?;!*#@$_%])+)?((?<PUBIDLITERALQUOTECLOSE>\')|(?<ERROR>)))|(?<ERROR>))(?(ERROR)|((?<SPACE>([\x20\x09\x0D\x0A]+))|(?<ERROR>)))(?(ERROR)|((((?<SYSTEMLITERALQUOTEOPEN>')(?<SYSTEMLITERAL>([\x09\x0A\x0D\x20-\uD7FF\uE000-\uFFFD-[']]|[\uD800-\uDBFF][\uDC00-\uDFFF])+)?((?<SYSTEMLITERALQUOTECLOSE>')|(?<ERROR>)))|((?<SYSTEMLITERALQUOTEOPEN>")(?<SYSTEMLITERAL>([\x09\x0A\x0D\x20-\uD7FF\uE000-\uFFFD-["]]|[\uD800-\uDBFF][\uDC00-\uDFFF])+)?((?<SYSTEMLITERALQUOTECLOSE>")|(?<ERROR>))))|(?<ERROR>))))))|(?<ERROR>))))|(?<ERROR>))(?(ERROR)|(?<SPACE>([\x20\x09\x0D\x0A]+))?((?<DTDENTITYBRACKETCLOSE>>)|(?<ERROR>))))|((?<DTDNOTATIONBRACKETOPEN><!)(?<DTDNAME>NOTATION)(?<SPACE>([\x20\x09\x0D\x0A]+))((?<DTDNOTATIONNAME>(([:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDBFF][\uDC00-\uDFFF])([:\-.0-9\xB7\u0300-\u036F\u203F-\u2040A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDBFF][\uDC00-\uDFFF])*))|(?<ERROR>))(?(ERROR)|((?<SPACE>([\x20\x09\x0D\x0A]+))|(?<ERROR>)))(?(ERROR)|(((?<DTDIDTYPE>PUBLIC)(?<SPACE>([\x20\x09\x0D\x0A]+))(((?<PUBIDLITERALQUOTEOPEN>")(?<PUBID>([\x20\x0D\x0Aa-zA-Z0-9\-'()+,./:=?;!*#@$_%])+)?((?<PUBIDLITERALQUOTECLOSE>")|(?<ERROR>))|(?<PUBIDLITERALQUOTEOPEN>')(?<PUBID>([\x20\x0D\x0Aa-zA-Z0-9\-()+,./:=?;!*#@$_%])+)?((?<PUBIDLITERALQUOTECLOSE>\')|(?<ERROR>)))|(?<ERROR>)))(?=([\x20\x09\x0D\x0A]+)?>)|(((?<DTDIDTYPE>SYSTEM)(?<SPACE>([\x20\x09\x0D\x0A]+))((((?<SYSTEMLITERALQUOTEOPEN>')(?<SYSTEMLITERAL>([\x09\x0A\x0D\x20-\uD7FF\uE000-\uFFFD-[']]|[\uD800-\uDBFF][\uDC00-\uDFFF])+)?((?<SYSTEMLITERALQUOTECLOSE>')|(?<ERROR>)))|((?<SYSTEMLITERALQUOTEOPEN>")(?<SYSTEMLITERAL>([\x09\x0A\x0D\x20-\uD7FF\uE000-\uFFFD-["]]|[\uD800-\uDBFF][\uDC00-\uDFFF])+)?((?<SYSTEMLITERALQUOTECLOSE>")|(?<ERROR>))))|(?<ERROR>)))|((?<DTDIDTYPE>PUBLIC)(?<SPACE>([\x20\x09\x0D\x0A]+))(((?<PUBIDLITERALQUOTEOPEN>")(?<PUBID>([\x20\x0D\x0Aa-zA-Z0-9\-'()+,./:=?;!*#@$_%])+)?((?<PUBIDLITERALQUOTECLOSE>")|(?<ERROR>))|(?<PUBIDLITERALQUOTEOPEN>')(?<PUBID>([\x20\x0D\x0Aa-zA-Z0-9\-()+,./:=?;!*#@$_%])+)?((?<PUBIDLITERALQUOTECLOSE>\')|(?<ERROR>)))|(?<ERROR>))(?(ERROR)|((?<SPACE>([\x20\x09\x0D\x0A]+))|(?<ERROR>)))(?(ERROR)|((((?<SYSTEMLITERALQUOTEOPEN>')(?<SYSTEMLITERAL>([\x09\x0A\x0D\x20-\uD7FF\uE000-\uFFFD-[']]|[\uD800-\uDBFF][\uDC00-\uDFFF])+)?((?<SYSTEMLITERALQUOTECLOSE>')|(?<ERROR>)))|((?<SYSTEMLITERALQUOTEOPEN>")(?<SYSTEMLITERAL>([\x09\x0A\x0D\x20-\uD7FF\uE000-\uFFFD-["]]|[\uD800-\uDBFF][\uDC00-\uDFFF])+)?((?<SYSTEMLITERALQUOTECLOSE>")|(?<ERROR>))))|(?<ERROR>)))))|(?<ERROR>)))(?(ERROR)|(?<SPACE>([\x20\x09\x0D\x0A]+))?((?<DTDNOTATIONBRACKETCLOSE>>)|(?<ERROR>))))|((?<PIOPEN><\?)(?![Xx][Mm][Ll](([\x20\x09\x0D\x0A]+)|\?>))(?<PINAME>(([:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDBFF][\uDC00-\uDFFF])([:\-.0-9\xB7\u0300-\u036F\u203F-\u2040A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDBFF][\uDC00-\uDFFF])*))((?<SPACE>([\x20\x09\x0D\x0A]+))(?<OTHER>((?!\?>)([\x09\x0A\x0D\x20-\uD7FF\uE000-\uFFFD]|[\uD800-\uDBFF][\uDC00-\uDFFF]))+)?)?((?<PICLOSE>\?>)|(?<ERROR>)))|((?<COMMENTOPEN><!--)(?<COMMENT>(([\x09\x0A\x0D\x20-\uD7FF\uE000-\uFFFD-[-]]|[\uD800-\uDBFF][\uDC00-\uDFFF])|-([\x09\x0A\x0D\x20-\uD7FF\uE000-\uFFFD-[-]]|[\uD800-\uDBFF][\uDC00-\uDFFF]))+)?((?<COMMENTCLOSE>-->)|(?<ERROR>))))|(((?<PEREFOPEN>%)((?<PEREFNAME>(([:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDBFF][\uDC00-\uDFFF])([:\-.0-9\xB7\u0300-\u036F\u203F-\u2040A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDBFF][\uDC00-\uDFFF])*))|(?<ERROR>))(?(ERROR)|((?<PEREFCLOSE>;)|(?<ERROR>))))|(?<SPACE>([\x20\x09\x0D\x0A]+)))))*(?(ERROR)|((?<DTDINTSUBSETBRACKETCLOSE>\])|(?<ERROR>)))(?(ERROR)|(?<SPACE>([\x20\x09\x0D\x0A]+))?))?)(?(ERROR)|((?<DTDDOCTYPEBRACKETCLOSE>>)|(?<ERROR>))))(?(ERROR)|(((?<COMMENTOPEN><!--)(?<COMMENT>(([\x09\x0A\x0D\x20-\uD7FF\uE000-\uFFFD-[-]]|[\uD800-\uDBFF][\uDC00-\uDFFF])|-([\x09\x0A\x0D\x20-\uD7FF\uE000-\uFFFD-[-]]|[\uD800-\uDBFF][\uDC00-\uDFFF]))+)?((?<COMMENTCLOSE>-->)|(?<ERROR>)))|((?<PIOPEN><\?)(?![Xx][Mm][Ll](([\x20\x09\x0D\x0A]+)|\?>))(?<PINAME>(([:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDBFF][\uDC00-\uDFFF])([:\-.0-9\xB7\u0300-\u036F\u203F-\u2040A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDBFF][\uDC00-\uDFFF])*))((?<SPACE>([\x20\x09\x0D\x0A]+))(?<OTHER>((?!\?>)([\x09\x0A\x0D\x20-\uD7FF\uE000-\uFFFD]|[\uD800-\uDBFF][\uDC00-\uDFFF]))+)?)?((?<PICLOSE>\?>)|(?<ERROR>)))|(?<SPACE>([\x20\x09\x0D\x0A]+))))*)?)(?(ERROR)|(((((?<STARTELEMENTTAGOPEN>(?<STARTEMPTYELEMENTTAGOPEN><))(?<_ELDEPTH>(?<EMPTYELEMENTNAME>(?<ELEMENTNAME>(([:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDBFF][\uDC00-\uDFFF])([:\-.0-9\xB7\u0300-\u036F\u203F-\u2040A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDBFF][\uDC00-\uDFFF])*))))(?(ERROR)|(?<SPACE>([\x20\x09\x0D\x0A]+))((?<ATTRNAME>(([:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDBFF][\uDC00-\uDFFF])([:\-.0-9\xB7\u0300-\u036F\u203F-\u2040A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDBFF][\uDC00-\uDFFF])*))((?<SPACE>([\x20\x09\x0D\x0A]+))?((?<EQUAL>=)(?<SPACE>([\x20\x09\x0D\x0A]+))?|(?<ERROR>)))(?(ERROR)|(((?<ATTRVALUEQUOTEOPEN>')(?(ERROR)|((?<TEXT>([\x09\x0A\x0D\x20-\uD7FF\uE000-\uFFFD-[<&']]|[\uD800-\uDBFF][\uDC00-\uDFFF])+)|(((?<CHARREFOPEN>&\#)((?<CHARREFVALUE>[0-9]+|x[0-9A-Fa-f]+)|(?<ERROR>))(?(ERROR)|((?<CHARREFCLOSE>;)|(?<ERROR>))))|((?<ENTITYREFOPEN>&)((?<ENTITYREFNAME>(([:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDBFF][\uDC00-\uDFFF])([:\-.0-9\xB7\u0300-\u036F\u203F-\u2040A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDBFF][\uDC00-\uDFFF])*))|(?<ERROR>))(?(ERROR)|((?<ENTITYREFCLOSE>;)|(?<ERROR>)))))))*(?(ERROR)|((?<ATTRVALUEQUOTECLOSE>')|(?<ERROR>))))|((?<ATTRVALUEQUOTEOPEN>")(?(ERROR)|((?<TEXT>([\x09\x0A\x0D\x20-\uD7FF\uE000-\uFFFD-[<&"]]|[\uD800-\uDBFF][\uDC00-\uDFFF])+)|(((?<CHARREFOPEN>&\#)((?<CHARREFVALUE>[0-9]+|x[0-9A-Fa-f]+)|(?<ERROR>))(?(ERROR)|((?<CHARREFCLOSE>;)|(?<ERROR>))))|((?<ENTITYREFOPEN>&)((?<ENTITYREFNAME>(([:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDBFF][\uDC00-\uDFFF])([:\-.0-9\xB7\u0300-\u036F\u203F-\u2040A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDBFF][\uDC00-\uDFFF])*))|(?<ERROR>))(?(ERROR)|((?<ENTITYREFCLOSE>;)|(?<ERROR>)))))))*(?(ERROR)|((?<ATTRVALUEQUOTECLOSE>")|(?<ERROR>))))))))*(?(ERROR)|(?<SPACE>([\x20\x09\x0D\x0A]+))?((?<STARTEMPTYELEMENTTAGCLOSE>/>(?<-STARTELEMENTTAGOPEN>)(?<-_ELDEPTH>)(?<-ELEMENTNAME>))|(?<STARTELEMENTTAGCLOSE>>(?<-STARTEMPTYELEMENTTAGOPEN>)(?<-EMPTYELEMENTNAME>))|(?<ERROR>))))|(?<ERROR>))(?(ERROR)|(?(_ELDEPTH)(((?<CDATA>((?!\]\]>)([\x09\x0A\x0D\x20-\uD7FF\uE000-\uFFFD-[<&]]|[\uD800-\uDBFF][\uDC00-\uDFFF]))+))|((?<COMMENTOPEN><!--)(?<COMMENT>(([\x09\x0A\x0D\x20-\uD7FF\uE000-\uFFFD-[-]]|[\uD800-\uDBFF][\uDC00-\uDFFF])|-([\x09\x0A\x0D\x20-\uD7FF\uE000-\uFFFD-[-]]|[\uD800-\uDBFF][\uDC00-\uDFFF]))+)?((?<COMMENTCLOSE>-->)|(?<ERROR>)))|((?<STARTELEMENTTAGOPEN>(?<STARTEMPTYELEMENTTAGOPEN><))(?<_ELDEPTH>(?<EMPTYELEMENTNAME>(?<ELEMENTNAME>(([:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDBFF][\uDC00-\uDFFF])([:\-.0-9\xB7\u0300-\u036F\u203F-\u2040A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDBFF][\uDC00-\uDFFF])*))))(?(ERROR)|(?<SPACE>([\x20\x09\x0D\x0A]+))((?<ATTRNAME>(([:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDBFF][\uDC00-\uDFFF])([:\-.0-9\xB7\u0300-\u036F\u203F-\u2040A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDBFF][\uDC00-\uDFFF])*))((?<SPACE>([\x20\x09\x0D\x0A]+))?((?<EQUAL>=)(?<SPACE>([\x20\x09\x0D\x0A]+))?|(?<ERROR>)))(?(ERROR)|(((?<ATTRVALUEQUOTEOPEN>')(?(ERROR)|((?<TEXT>([\x09\x0A\x0D\x20-\uD7FF\uE000-\uFFFD-[<&']]|[\uD800-\uDBFF][\uDC00-\uDFFF])+)|(((?<CHARREFOPEN>&\#)((?<CHARREFVALUE>[0-9]+|x[0-9A-Fa-f]+)|(?<ERROR>))(?(ERROR)|((?<CHARREFCLOSE>;)|(?<ERROR>))))|((?<ENTITYREFOPEN>&)((?<ENTITYREFNAME>(([:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDBFF][\uDC00-\uDFFF])([:\-.0-9\xB7\u0300-\u036F\u203F-\u2040A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDBFF][\uDC00-\uDFFF])*))|(?<ERROR>))(?(ERROR)|((?<ENTITYREFCLOSE>;)|(?<ERROR>)))))))*(?(ERROR)|((?<ATTRVALUEQUOTECLOSE>')|(?<ERROR>))))|((?<ATTRVALUEQUOTEOPEN>")(?(ERROR)|((?<TEXT>([\x09\x0A\x0D\x20-\uD7FF\uE000-\uFFFD-[<&"]]|[\uD800-\uDBFF][\uDC00-\uDFFF])+)|(((?<CHARREFOPEN>&\#)((?<CHARREFVALUE>[0-9]+|x[0-9A-Fa-f]+)|(?<ERROR>))(?(ERROR)|((?<CHARREFCLOSE>;)|(?<ERROR>))))|((?<ENTITYREFOPEN>&)((?<ENTITYREFNAME>(([:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDBFF][\uDC00-\uDFFF])([:\-.0-9\xB7\u0300-\u036F\u203F-\u2040A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDBFF][\uDC00-\uDFFF])*))|(?<ERROR>))(?(ERROR)|((?<ENTITYREFCLOSE>;)|(?<ERROR>)))))))*(?(ERROR)|((?<ATTRVALUEQUOTECLOSE>")|(?<ERROR>))))))))*(?(ERROR)|(?<SPACE>([\x20\x09\x0D\x0A]+))?((?<STARTEMPTYELEMENTTAGCLOSE>/>(?<-STARTELEMENTTAGOPEN>)(?<-_ELDEPTH>)(?<-ELEMENTNAME>))|(?<STARTELEMENTTAGCLOSE>>(?<-STARTEMPTYELEMENTTAGOPEN>)(?<-EMPTYELEMENTNAME>))|(?<ERROR>))))|(((?<CHARREFOPEN>&\#)((?<CHARREFVALUE>[0-9]+|x[0-9A-Fa-f]+)|(?<ERROR>))(?(ERROR)|((?<CHARREFCLOSE>;)|(?<ERROR>))))|((?<ENTITYREFOPEN>&)((?<ENTITYREFNAME>(([:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDBFF][\uDC00-\uDFFF])([:\-.0-9\xB7\u0300-\u036F\u203F-\u2040A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDBFF][\uDC00-\uDFFF])*))|(?<ERROR>))(?(ERROR)|((?<ENTITYREFCLOSE>;)|(?<ERROR>)))))|((?<CDATAOPEN><!\[CDATA\[)(?<CDATA>((?!]]>)([\x09\x0A\x0D\x20-\uD7FF\uE000-\uFFFD]|[\uD800-\uDBFF][\uDC00-\uDFFF]))+)?((?<CDATACLOSE>]]>)|(?<ERROR>)))|((?<PIOPEN><\?)(?![Xx][Mm][Ll](([\x20\x09\x0D\x0A]+)|\?>))(?<PINAME>(([:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDBFF][\uDC00-\uDFFF])([:\-.0-9\xB7\u0300-\u036F\u203F-\u2040A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDBFF][\uDC00-\uDFFF])*))((?<SPACE>([\x20\x09\x0D\x0A]+))(?<OTHER>((?!\?>)([\x09\x0A\x0D\x20-\uD7FF\uE000-\uFFFD]|[\uD800-\uDBFF][\uDC00-\uDFFF]))+)?)?((?<PICLOSE>\?>)|(?<ERROR>)))|((?<ENDELEMENTTAGOPEN></)((?<ENDTAGGEDNAME>\k<_ELDEPTH>(?<-_ELDEPTH>))|(?<ERROR>))(?(ERROR)|(?<SPACE>([\x20\x09\x0D\x0A]+))?(?<ENDELEMENTTAGCLOSE>>))))))*(?(ERROR)|(?(_ELDEPTH)(?<ERROR>)))(?<-_ELDEPTH>)*)|(?<ERROR>)))(?(ERROR)|(((?<COMMENTOPEN><!--)(?<COMMENT>(([\x09\x0A\x0D\x20-\uD7FF\uE000-\uFFFD-[-]]|[\uD800-\uDBFF][\uDC00-\uDFFF])|-([\x09\x0A\x0D\x20-\uD7FF\uE000-\uFFFD-[-]]|[\uD800-\uDBFF][\uDC00-\uDFFF]))+)?((?<COMMENTCLOSE>-->)|(?<ERROR>)))|((?<PIOPEN><\?)(?![Xx][Mm][Ll](([\x20\x09\x0D\x0A]+)|\?>))(?<PINAME>(([:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDBFF][\uDC00-\uDFFF])([:\-.0-9\xB7\u0300-\u036F\u203F-\u2040A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDBFF][\uDC00-\uDFFF])*))((?<SPACE>([\x20\x09\x0D\x0A]+))(?<OTHER>((?!\?>)([\x09\x0A\x0D\x20-\uD7FF\uE000-\uFFFD]|[\uD800-\uDBFF][\uDC00-\uDFFF]))+)?)?((?<PICLOSE>\?>)|(?<ERROR>)))|(?<SPACE>([\x20\x09\x0D\x0A]+)))*))(\z|(?(ERROR)|(?<ERROR>))))
clone this paste RAW Paste Data