🔥 | Latest

Beautiful, God, and Love: 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
Beautiful, God, and Love: 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

Unicöde

Beautiful, God, and Love: 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?
Beautiful, God, and Love: 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?

How do I replace XHTML tags with RegEx?

Asian, Climbing, and College: ingu: marrymejasonsegel: I wrote a college paper once about gender dynamics in Disney films, and part dealt with the emphasis of androgyny in this film. Mulan is an outsider and unsure of her position of the world when she is adhering to both a total feminine role (the matchmaking scene) and a total masculine role (disguised as a male soldier) and it’s only when she’s able to embrace both sides that she is able to fully showcase her abilities and ultimately save the day.  The entire climax, from climbing the poles using sashes, counting on Shan Yu’s complete dismissal of women to get the Emperor to safety, to this scene where she literally uses a symbol of womanhood (within the movie at least) to disarm the villain of his symbol of masculinity and beat him at his own game, shows Mulan relying on the aspects of her femininity that she has grown up adhering to and adapting the tactical knowledge and fighting skills that she learned disguised as a male soldier to those aspects. The result is a unique and innovative view of the world and her course of action that leads her to save the day when the male soldiers failed and the women wouldn’t even have been allowed to try.  This commentary is so curious to me because it’s such an excellent example of white/western cultural bias in portrayals of other cultures. Because fans by themselves are a gender neutral object in Ancient China, especially the large type that Mulan uses in this particular scene is actually masculine if you must code it historically, and in Chinese hands would be used as a tool to support her masculinity and not the other way around. These paper fans are used in general by (male) scholars and artists who decorate its surface with art and calligraphy. It is a symbol of (masculine) intellectual power and the intellectual elite. And if you look to Asian martial arts films, they are a common and almost exclusive weapon of men. Yet the movie takes this deeply cultural object and either willingly or ignorantly makes it an object of womanhood or femininity. To the extent of my knowledge, this is mostly reflective of western social history. And draws from the coquettish ways Georgian? Ladies would use the fan to signal their romantic interest and all the history and influence around it. The equivalent object for the Chinese lady would in fact be the handkerchief, or a hairstick if you want something pointy. And it’s all the more curious because at the end of the day it’s a western depiction of a foreign story made for western consumption. It is not a story made by and for Chinese little girls, but to empower and inspire those in the West. Which provides the context for the above (excellent) analysis. It does not need to fully take Chinese history into context because it was never made for us, despite being explicitly about us.
Asian, Climbing, and College: ingu:
marrymejasonsegel:

I wrote a college paper once about gender dynamics in Disney films, and part dealt with the emphasis of androgyny in this film. Mulan is an outsider and unsure of her position of the world when she is adhering to both a total feminine role (the matchmaking scene) and a total masculine role (disguised as a male soldier) and it’s only when she’s able to embrace both sides that she is able to fully showcase her abilities and ultimately save the day. 
The entire climax, from climbing the poles using sashes, counting on Shan Yu’s complete dismissal of women to get the Emperor to safety, to this scene where she literally uses a symbol of womanhood (within the movie at least) to disarm the villain of his symbol of masculinity and beat him at his own game, shows Mulan relying on the aspects of her femininity that she has grown up adhering to and adapting the tactical knowledge and fighting skills that she learned disguised as a male soldier to those aspects. The result is a unique and innovative view of the world and her course of action that leads her to save the day when the male soldiers failed and the women wouldn’t even have been allowed to try. 

This commentary is so curious to me because it’s such an excellent example of white/western cultural bias in portrayals of other cultures. Because fans by themselves are a gender neutral object in Ancient China, especially the large type that Mulan uses in this particular scene is actually masculine if you must code it historically, and in Chinese hands would be used as a tool to support her masculinity and not the other way around. These paper fans are used in general by (male) scholars and artists who decorate its surface with art and calligraphy. It is a symbol of (masculine) intellectual power and the intellectual elite. And if you look to Asian martial arts films, they are a common and almost exclusive weapon of men.
Yet the movie takes this deeply cultural object and either willingly or ignorantly makes it an object of womanhood or femininity. To the extent of my knowledge, this is mostly reflective of western social history. And draws from the coquettish ways Georgian? Ladies would use the fan to signal their romantic interest and all the history and influence around it. The equivalent object for the Chinese lady would in fact be the handkerchief, or a hairstick if you want something pointy.
And it’s all the more curious because at the end of the day it’s a western depiction of a foreign story made for western consumption. It is not a story made by and for Chinese little girls, but to empower and inspire those in the West. Which provides the context for the above (excellent) analysis. It does not need to fully take Chinese history into context because it was never made for us, despite being explicitly about us.

ingu: marrymejasonsegel: I wrote a college paper once about gender dynamics in Disney films, and part dealt with the emphasis of androgyny ...

Harry Potter, Money, and Shit: What are the biggest plot holes and errors in Harry Potter? Hannah Yang 75.3k Views Here's one of my favorites, and it doesn't even involve magic... According to Hagrid, there are 17 Sickles to a Galleon. Sickles are made of silver, Galleons are made of gold. Simple enouglh But here's the thing about silver and gold in the Muggle economy: the ratio fluctuates. The price of gold and the price of silver are constantly changing. In fact, the gold-to- silver ratio is a tool many people use to determine when to buy these metals. Before 1900, the ratio averaged around 16:1, which seems to reasonably parallel wizarding standards. Throughout the twentieth century, though, the ratio has averaged around 45:1 So if you're a wizard in need of money, here's what you'd want to do. Wait for a time when the gold to silver ratio is really, really high. Take all of your gold Galleons, melt them down into lumps of pure gold, and sell them in the Muggle economy. Use that Iuggle money to buy as much pure silver as you can - you'll get an enormous bund of it, since the gold to silver ratio is so high. Finally, take that silver back to Gringotts and get it all minted into Sickles. If you want, you can even exchange them back to Galleons at the fixed 17:1 rate, and feel smug over the fact that you now have over twice as many Galleons as you started with Profit. It's a sweet, sweet thing iamtheaardvark: aboutreciprocation: …holy shit None of the characters ever figure this out because they stop taking math at age 11
Harry Potter, Money, and Shit: What are the biggest plot holes and errors in Harry Potter?
 Hannah Yang
 75.3k Views
 Here's one of my favorites, and it doesn't even involve magic...
 According to Hagrid, there are 17 Sickles to a Galleon. Sickles are made of silver,
 Galleons are made of gold. Simple enouglh
 But here's the thing about silver and gold in the Muggle economy: the ratio fluctuates.
 The price of gold and the price of silver are constantly changing. In fact, the gold-to-
 silver ratio is a tool many people use to determine when to buy these metals. Before
 1900, the ratio averaged around 16:1, which seems to reasonably parallel wizarding
 standards. Throughout the twentieth century, though, the ratio has averaged around
 45:1
 So if you're a wizard in need of money, here's what you'd want to do. Wait for a time
 when the gold to silver ratio is really, really high. Take all of your gold Galleons, melt
 them down into lumps of pure gold, and sell them in the Muggle economy. Use that
 Iuggle money to buy as much pure silver as you can - you'll get an enormous bund
 of it, since the gold to silver ratio is so high. Finally, take that silver back to Gringotts
 and get it all minted into Sickles. If you want, you can even exchange them back to
 Galleons at the fixed 17:1 rate, and feel smug over the fact that you now have over
 twice as many Galleons as you started with
 Profit. It's a sweet, sweet thing
iamtheaardvark:

aboutreciprocation:

…holy shit

None of the characters ever figure this out because they stop taking math at age 11

iamtheaardvark: aboutreciprocation: …holy shit None of the characters ever figure this out because they stop taking math at age 11