🔥 Popular | Latest

regex and html: 21 Answers votes oldest newest You can't parse [X]HTML with regex. Because HTML can't be parsed by regex. Regex is not a tool that can be used to correctly parse HTML. As I have answered in HTML-and-regex questions here so many times before, the use of regex will not allow you to consume HTML. Regular expressions are a tool that is insufficiently sophisticated to understand the constructs employed by HTML. HTML is not a regular language and hence cannot be parsed by regular expressions. Regex queries are not equipped to break down HTML into its meaningful parts. so many times but it is not getting to me. Even enhanced irregular regular expressions as used by Perl are not up to the task of parsing HTML. You will never make me crack. HTML is a language of sufficient complexity that it cannot be parsed by regular expressions. Even Jon Skeet cannot parse HTML using regular expressions. Every time you attempt to parse HTML with regular expressions, the unholy child weeps the blood of virgins, and Russian hackers pwn your webapp. Parsing HTML with regex summons tainted souls into the realm of the living. HTML and regex go together like love, marriage, and ritual infanticide. The <center> cannot hold it is too late. The force of regex and HTML together in the same conceptual space will destroy your mind like so much watery putty. If you parse HTML with regex you are giving in to Them and their blasphemous ways which doom us all to inhuman toil for the One whose Name cannot be expressed in the Basic Multilingual Plane, he comes. HTML-plus-regexp will liquify the nerves of the sentient whilst you observe, your psyche withering in the onslaught of horror. Regex-based HTML parsers are the cancer that is killing StackOverflow it is too late it is too late we cannot be saved the trangession of a child ensures regex will consume all living tissue (except for HTML which it cannot, as previously prophesied) dear lord help us how can anyone survive this scourge using regex to parse HTML has doomed humanity to an eternity of dread torture and security holes using regex as a tool to process HTML establishes a breach between this world and the dread realm of čorrupt entities (like SGML entities, but more corrupt) a mere glimpse of the world of reg ex parsers for HTML will instantly transport a programmer's consciousness into a world of ceaseless screaming, he comes-the pestilent slithy regex-infection will devour your HTML parser, application and existence for all time like Vişual Basic only worse he comes he comes do not fight he comes, his uņholy radiance destroping all enlightenment, HTML tags leaking frọm your eyesiike liquid pain, the song of regular expression parsing-will extinguish the voices of mortal man from the sphere I can see it can you see t it is beautiful the f inal snuf fing of the lies of Man ALL ĮS LOSTALL IS LOST the pony he comes he comes hejcemes the ichor permeates al MY FACEFACEh god no NO NOOoo Ne stop the an ges aře not reâj ZALGO IS TON THË PONY, HECOMES 1811 Have you tried using an XML parser instead? link edit flag edited Nov 14 at 0:18 community wiki bobince regex and html
Save
ithelpstodream: excerpt: “If girls say they are depressed, we owe it to them to listen. Furthermore, we can no longer afford to ignore the effect of a highly gendered culture on the mental wellbeing of girls. If we’re able to draw links between masculinity and high suicide rates in men, we can surely do the same with femininity and female despair. If the past is another country, female adolescence is a war zone. Puberty transforms you into a walking target overnight. If you’re lucky, other girls get there before you and become your shields. Pity the girl who’s wearing a bra before she leaves primary school; already she’s ventured over the top, into a no man’s land of groping, cat calls and adult disapproval. Girls need support in getting through this. They need coping methods. But they also need a different society, one which permits them to take up space, to express their fears and passions rather than internalise them. It should not be the role of mental health services to patch girls up and arm them to face another onslaught of patriarchal slings and arrows. There has to be a ceasefire. Girls shouldn’t have to be so brave.” read more: http://www.independent.co.uk/voices/mental-health-teenage-girls-quarter-rise-patriarchy-sexism-abuse-a7957441.html : INDEPENDENT LIKE Voices There is a way to revent so many eenage girls being deprešsed - but no one wants to admit it ity the girl who's wearing a bra before she leaves primary school already she's ventured over the top, into a no man's land of groping, cat calls and adult disapproval ithelpstodream: excerpt: “If girls say they are depressed, we owe it to them to listen. Furthermore, we can no longer afford to ignore the effect of a highly gendered culture on the mental wellbeing of girls. If we’re able to draw links between masculinity and high suicide rates in men, we can surely do the same with femininity and female despair. If the past is another country, female adolescence is a war zone. Puberty transforms you into a walking target overnight. If you’re lucky, other girls get there before you and become your shields. Pity the girl who’s wearing a bra before she leaves primary school; already she’s ventured over the top, into a no man’s land of groping, cat calls and adult disapproval. Girls need support in getting through this. They need coping methods. But they also need a different society, one which permits them to take up space, to express their fears and passions rather than internalise them. It should not be the role of mental health services to patch girls up and arm them to face another onslaught of patriarchal slings and arrows. There has to be a ceasefire. Girls shouldn’t have to be so brave.” read more: http://www.independent.co.uk/voices/mental-health-teenage-girls-quarter-rise-patriarchy-sexism-abuse-a7957441.html

ithelpstodream: excerpt: “If girls say they are depressed, we owe it to them to listen. Furthermore, we can no longer afford to ignore...

Save
Unicöde: You can't parse [X]HTML with regex. Because HTML can't be parsed by regex. Regex is not a tool that can be used to correctly parse HTML. As I have answered in HTML-and-regex questions here so many times before, the use of regex will not allow you to consume HTML. Regular expressions are a tool that is insufficiently sophisticated to understand the constructs employed by HTML. HTML is not a regular language and hence cannot be parsed by regular expressions. Regex queries are not equipped to break down HTML into its meaningful parts. so many times but it is not getting to me. Even enhanced irregular regular expressions as used by Perl are not up to the task of parsing HTML. You will never make me crack. HTML is a language of sufficient complexity that it cannot be parsed by regular expressions. Even Jon Skeet cannot parse HTML using regular expressions Every time you attempt to parse HTML with regular expressions, the unholy child weeps the blood of virgins, and Russian hackers pwn your webapp. Parsing HTML with regex summons tainted souls into the realm of the living. HTML and regex go together like love, marriage, and ritual infanticide The <center> cannot hold it is too late. The force of regex and HTML together in the same conceptual space will destroy your mind like so much watery putty. If you parse HTML with regex you are giving in to Them and their blasphemous ways which doom us all to inhuman toil for the One whose Name cannot be expressed in the Basic Multilingual Plane, he comes. HTML-plus regexp will liquify the neryes of the sentient whilst you observe, your psyche withering in the onslaught of horror. Regex-based HTML parsers are the cancer that is killing StackOverflow it is too late it is too late we cannot be saved the trangession of a child ensures regex will consume all living tissue (except for HTML which it cannot, as previously prophesied) dear lord help us how car anyone survive this scourge using regex to parse HTML has doomed humanity to an eternity of dread torture and security holes using regex as a tool to process HTML establishes a breach between this world and the dread realm of cörrupt entities (like SGML entities, but more corrupt) a mere glimpse of the world of regex parsers for HTML will instantly transport a programmer's consciousness into a world of ceaseless screaming, he comes,the pestilent slithy regex-infection wil I devour your HTML parser, application and existence for all time like Visual Bąsic only worse he comes he comes do not fight he comes, his unholy radiance destroying all enlightenment, HTML tags leakjng frqm your eyes/like liquid pain, the song of regular expressien parsing-will extinguish the voices of mortal man from the sphgre I can see it can you see i it is beautiful the f inal 4421 snuf fing of the lies of Man ALL IS LOST ALL IS LOST the pory he comes he comese comes tge ichor permeates all MY FACE MY F Fish god no NO NOOOO ΝΘ stop the anges . ạre not rea) ZALGo is TOM) THE PONY HEgOMES Unicöde
Save
How do I replace XHTML tags with RegEx?: You can't parse [X]HTML with regex. Because HTML can't be parsed by regex. Regex is not a tool that can be used to correctly parse HTML. As I have answered in HTML-and-regex questions here so many times before, the use of regex will not allow you to consume HTML. Regular expressions are a tool that is insufficiently sophisticated to understand the constructs employed by HTML. HTML is not a regular language and hence cannot be parsed by regular expressions. Regex queries are not equipped to break down HTML into its meaningful parts. so many times but it is not getting to me. Even enhanced irregular regular expressions as used by Perl are not up to the task of parsing HTML. You will never make me crack. HTML is a language of sufficient complexity that it cannot be parsed by regular expressions. Even Jon Skeet cannot parse HTML using regular expressions. Every time you attempt to parse HTML with regular expressions, the unholy child weeps the blood of virgins, and Russian hackers pwn your webapp. Parsing HTML with regex summons tainted souls into the realm of the living. HTML and regex go together like love, marriage, and ritual infanticide The <center> cannot hold it is too late. The force of regex and HTML together in the same conceptual space will destroy your mind like so much watery putty. If you parse HTML with regex you are giving in to Them and their blasphemous ways which doom us all to inhuman toil for the One whose Name cannot be expressed in the Basic Multilingual Plane, he comes. HTML-plus regexp will liquify the neryes of the sentient whilst you observe, your psyche withering in the onslaught of horror. Regēx-based HTML parsers are the cancer that is killing StackOverflow it is too late it is too late we cannot be saved the trangession of a child ensures regex will consume all living tissue (except for HTML which it cannot, as previously prophesied) dear lord help us how can anyone survive this scourge using regex to parse HTML has doomed humanity to an eternity of dread torture and security holes using regex as a tool to process HTML establishes a breach between this world and the dread realm of corrupt entities (like SGML entities, but more corrupt) a mere glimpse of the world of regex parsers for HTML will instantly transport a programmer's consciousness into a world of ceaseless screaming, he comes, the pestilent-slithy regex-infection wil I devour your HTML parser, application and existence for all time like Visual Basic only worse he comes he comes do not fight he comøs, his unholy radiañcé destroying all enlightenment, HTML tags leaking from your eyeslike liquid pain, the song of regular expressien parsing-will extinguish the voices of mortal man from the sphgre I can see it can you see ft it is beautiful the f inal snuf fing of the lies of Man ALL ISLOSTALL IS LOST the pony h comes he com t egichor permeates al My FACE tyEACE b god no NO NOOOO NO stop the an les are not 4422 DA Have you tried using an XML parser instead? How do I replace XHTML tags with RegEx?
Save
<p><a href="http://en-shaedn.tumblr.com/post/148604766932" class="tumblr_blog">en-shaedn</a>:</p> <blockquote><p><a class="tumblr_blog" href="http://inquisitorladybloomers.tumblr.com/post/148434226294">inquisitorladybloomers</a>:</p> <blockquote> <p><a class="tumblr_blog" href="http://theoneandonlykyna.tumblr.com/post/91366996976">theoneandonlykyna</a>:</p> <blockquote> <p>My open letter to <a href="http://www.Theberry.com">www.Theberry.com</a> for their photo they potsted of a button stating “gluten free intolerant” that appears to be on a chef’s jacket *shudder*</p> <p class="MsoNormal">My dear berries,</p> <p class="MsoNormal">What you see here is me the sickest I’ve ever been in my whole life. Some doctors had given up on me while others remained baffled.  I was in the hospital with inflamed organs, locked joints, unable to eat, scared, and malnourished to the point of broken teeth, bones, and hair loss.  This is the day they figured out why.  I have Celiac Disease.  The protein gluten found in wheat, barley, and rye had caused my immune system to wreak havok on my body and destroy the villi in my intestines.  Without villi it is impossible to absorb nutrients you need to survive.  A gluten free diet saved my life.  My organs began to heal themselves and with time I was able to trade in my handicap sticker for a 5k bib.  This is the same gluten free diet you made fun of this morning in your morning coffee album.  In case you forgot it was a nice big photo of a button stating, “gluten free intolerant.”</p> <p class="MsoNormal">This disease is life threatening but somehow has become the butt of every joke.  Until now the Berry was one of the few places I could go and not worry about being ridiculed.   I cannot watch TV, listen to the radio, or go on the internet without hearing someone make fun of gluten or call everyone on the diet an annoying hipster.  I realize it is because so many have gone on the diet as a fad weight loss solution.   These are the same people that can’t even tell you what gluten is… As Jimmy Kimmel so kindly showed us.</p> <p class="MsoNormal">The jokes, viral youtube videos, and photos are dangerous and have put me and others like me in danger.   The onslaught of negative gluten freeness on the internet, TV, and radio have caused friends, family, and food service workers to view this diet as a joke rather than medical necessity.  They roll their eyes then proceed to contaminate our food (or blatantly give us gluten) because they honestly do not believe that it will cause any real harm.  It only takes 1/5 of a crumb to cause a gluten reaction.  And no it’s not a tummy ache it’s weeks of vomiting, skin rashes, crippling joint and muscle pain, and dizziness… just to name a few.  Every joke puts a celiac that much closer to danger.  I love the Berry and I am heart broken.  Please rise above the ignorance. Please give us a place where we can go without seeing our disease laughed at. Please, for the sake of those struggling and those who have lost the struggle.</p> <p class="MsoNormal">Sincerely,</p> <p class="MsoNormal">A Celiac survivor </p> <p class="MsoNormal">I’d also like to note that the first response to this was, “lighten up.”</p> </blockquote> <p>This, THIS is how dangerous a fad diet can be. Ever since the gluten free fad started, nobody takes seriously the people who have actual dietary restrictions for gluten. It’s disgusting that this would happen. (I don’t have celiac disease myself but I know people who do and others who simply can’t tolerate it for other medical reasons and the public’s treatment of everyone who eats gluten free seriously affects them.)</p> </blockquote> <p>One of my family’s dear friends has Celiac. He has been on the verge of death twice because of restaurants (once) and airlines (the other once) disregarding his statement that he CANNOT have gluten. He is as responsible as he can be, and sometimes he is still placed at the whim of other people. There are lots of fad diets, but that doesn’t matter. If someone asks for soy, give them soy. If someone asks for gluten free, give them gluten free. Don’t risk someone’s life for your self-righteousness, no matter how obnoxious paleo people are.</p></blockquote>: Gluten Free Intolerant <p><a href="http://en-shaedn.tumblr.com/post/148604766932" class="tumblr_blog">en-shaedn</a>:</p> <blockquote><p><a class="tumblr_blog" href="http://inquisitorladybloomers.tumblr.com/post/148434226294">inquisitorladybloomers</a>:</p> <blockquote> <p><a class="tumblr_blog" href="http://theoneandonlykyna.tumblr.com/post/91366996976">theoneandonlykyna</a>:</p> <blockquote> <p>My open letter to <a href="http://www.Theberry.com">www.Theberry.com</a> for their photo they potsted of a button stating “gluten free intolerant” that appears to be on a chef’s jacket *shudder*</p> <p class="MsoNormal">My dear berries,</p> <p class="MsoNormal">What you see here is me the sickest I’ve ever been in my whole life. Some doctors had given up on me while others remained baffled.  I was in the hospital with inflamed organs, locked joints, unable to eat, scared, and malnourished to the point of broken teeth, bones, and hair loss.  This is the day they figured out why.  I have Celiac Disease.  The protein gluten found in wheat, barley, and rye had caused my immune system to wreak havok on my body and destroy the villi in my intestines.  Without villi it is impossible to absorb nutrients you need to survive.  A gluten free diet saved my life.  My organs began to heal themselves and with time I was able to trade in my handicap sticker for a 5k bib.  This is the same gluten free diet you made fun of this morning in your morning coffee album.  In case you forgot it was a nice big photo of a button stating, “gluten free intolerant.”</p> <p class="MsoNormal">This disease is life threatening but somehow has become the butt of every joke.  Until now the Berry was one of the few places I could go and not worry about being ridiculed.   I cannot watch TV, listen to the radio, or go on the internet without hearing someone make fun of gluten or call everyone on the diet an annoying hipster.  I realize it is because so many have gone on the diet as a fad weight loss solution.   These are the same people that can’t even tell you what gluten is… As Jimmy Kimmel so kindly showed us.</p> <p class="MsoNormal">The jokes, viral youtube videos, and photos are dangerous and have put me and others like me in danger.   The onslaught of negative gluten freeness on the internet, TV, and radio have caused friends, family, and food service workers to view this diet as a joke rather than medical necessity.  They roll their eyes then proceed to contaminate our food (or blatantly give us gluten) because they honestly do not believe that it will cause any real harm.  It only takes 1/5 of a crumb to cause a gluten reaction.  And no it’s not a tummy ache it’s weeks of vomiting, skin rashes, crippling joint and muscle pain, and dizziness… just to name a few.  Every joke puts a celiac that much closer to danger.  I love the Berry and I am heart broken.  Please rise above the ignorance. Please give us a place where we can go without seeing our disease laughed at. Please, for the sake of those struggling and those who have lost the struggle.</p> <p class="MsoNormal">Sincerely,</p> <p class="MsoNormal">A Celiac survivor </p> <p class="MsoNormal">I’d also like to note that the first response to this was, “lighten up.”</p> </blockquote> <p>This, THIS is how dangerous a fad diet can be. Ever since the gluten free fad started, nobody takes seriously the people who have actual dietary restrictions for gluten. It’s disgusting that this would happen. (I don’t have celiac disease myself but I know people who do and others who simply can’t tolerate it for other medical reasons and the public’s treatment of everyone who eats gluten free seriously affects them.)</p> </blockquote> <p>One of my family’s dear friends has Celiac. He has been on the verge of death twice because of restaurants (once) and airlines (the other once) disregarding his statement that he CANNOT have gluten. He is as responsible as he can be, and sometimes he is still placed at the whim of other people. There are lots of fad diets, but that doesn’t matter. If someone asks for soy, give them soy. If someone asks for gluten free, give them gluten free. Don’t risk someone’s life for your self-righteousness, no matter how obnoxious paleo people are.</p></blockquote>

<p><a href="http://en-shaedn.tumblr.com/post/148604766932" class="tumblr_blog">en-shaedn</a>:</p> <blockquote><p><a class="tumblr_blog"...

Save
rrriordan: I know you’re all waiting for Apollo, but you want a little hint about Magnus Chase: The Hammer of Thor? Coming in October: Thor’s hammer is missing again. The thunder god has a disturbing habit of misplacing his weapon – the mightiest force in the Nine Worlds – but this time the hammer isn’t just lost. It has fallen into enemy hands. If Magnus Chase and his friends can’t retrieve the hammer quickly, the mortal worlds will be defenseless against an onslaught of giants. Ragnarok will begin. The Nine Worlds will burn. Unfortunately, the only person who can broker a deal for the hammer’s return is the gods’ worst enemy, Loki – and the price he wants is very high.: NEW YORK TIMES #1 BEST-SELLING AUTHOR RICK RIORDAN MAGHUS CHASE and the GODS of ASGARD THE HAMMER OF THOR COMING 10-4-16 - BOOK TWO VER N OT FINAL rrriordan: I know you’re all waiting for Apollo, but you want a little hint about Magnus Chase: The Hammer of Thor? Coming in October: Thor’s hammer is missing again. The thunder god has a disturbing habit of misplacing his weapon – the mightiest force in the Nine Worlds – but this time the hammer isn’t just lost. It has fallen into enemy hands. If Magnus Chase and his friends can’t retrieve the hammer quickly, the mortal worlds will be defenseless against an onslaught of giants. Ragnarok will begin. The Nine Worlds will burn. Unfortunately, the only person who can broker a deal for the hammer’s return is the gods’ worst enemy, Loki – and the price he wants is very high.

rrriordan: I know you’re all waiting for Apollo, but you want a little hint about Magnus Chase: The Hammer of Thor? Coming in October: T...

Save