You cannot parse [X]HTML by using Regex. Because the HTML language cannot be parsed by Regex. Regex is not a tool that can be used to parse HTML correctly. As I replied in HTML and regex questions here so many times before, using Regex will not allow you to consume HTML. Regular expressions are a poorly developed tool for understanding the constructions used by HTML. HTML is not a normal language and cannot be parsed by regular expressions. Regex queries are not equipped to divide the HTML code into its significant parts. So often, but it's not always for me. Even the irregular extended regular expressions used by Perl are not the task of HTML parsing. You're never going to let me crack. HTML is a language with sufficient complexity that cannot be parsed by regular expressions. Even Jon Pigeon cannot parse the HTML with regular expressions. Every time you try to parse the HTML code with regular expressions, the child cries the blood of the virgins, and the Russian pirates have their webapp. Parsing HTML with Regex gets the corrupted soul in the Kingdom of the living. HTML and Regex go together like love, marriage and killing of ritual children. The <center> cannot hold, it's too late. The power of Regex and HTML together in the same conceptual space will destroy your mind, like so many putty water. If you analyze the HTML code with Regex, give it to you and your blasphemous possibilities, that all of us to inhuman problems for those whose name cannot be expressed in the basic multilingual plan, it is. HTML Plus-RegExp You melt the erves of the while you observe your psyche in the onslaught of terror. Rege̿̔̉X-based HTML parser are cancer that kills StackOverflow is too late, it is too late, we can not be saved the trangession of a guaranteed Chi͡LD Regex will consume all living tissues (except HTML,) that can not, as already prophesied, dear Sir, help us, how can anyone survive this plague with HTML regex analysis, mankind has become an eternity of torture and dreadlocks with regex as a tool for HTML processing becomes a pause between this world and the frightening realm of entities C͒ͪo͛ͫrrupt (as the SGML entities, but more corrupted) a simple glimpse of the world of the ex reg parser for HTML goes to the auntyly carrying a programmer consciousness in a world of endless cries, it is, the stench Alacridi infection Regex Wil L devour the HT-ML parser, the application and the existence of all the time that Visual Basic gets only worse does not come with it com̡e̶s , ̕h̵i s un̨ho͞ly radiańcé destro҉Ying all ENLI̍̈́̂̈́ghtenment, tags HTML Lea͠Ki̧n͘g FR̶ǫm ̡yo ͟ur Eye͢s̸u ̛l̕IK͏e FL UID Pain, the song of Re̸gular exp resion analysis will fire nguish the voices of the man Mor Tal of the SP here can see that he can see you ̲͚̖͔̙î̩́t̲͎̩̱͔́̋̀ is quite t he finally turn off the man lies everything is LOŚ͖̩͇̗̪̏̈́T all that I lost the pon̷y it is , you C̶̮OMES it is I or penetrates all my face my face or H god no no noo̼O or Nato stop A * ̶͑̾̾ ̅ͫ͏̙̤g͇̫͛͆̾ͫ̑͆l͖͉̗̩̳̟̍ͫͥͨe̠̅s ͎a̧͈͖r̽̾̈́͒͑e n ot rè̑ͧ̌aͨl̘̝̙̃ͤ͂̾̆ za̡͊͠͝LGΌ isͮ̂҉̯͈͕̹̘̱ to͇̹̺ͅɲ̴ȳ̳ TH̘Ë͖́̉a ͠P̯͍̭O̚ N̐Y̡ H̸̡̪̯ͨ͊̽̅̾̎ȩ̬̩̾͛ͪ̈́̀́͘
Have you tried using an XML parser instead? bobince