🔥 | Latest

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

regex and html

Microsoft, True, and Break: OTHER PROGRAMMERS VS ME THEIR CODE MY CODE var joinResult from dataRowl in FormReportDataTable. As Enumerable () join dataRow2 in dtFormsCategories. As Enumerable () on dataRow1["FormID" ] equals dataRow2["ObjectID"] into tempResult from resultRow in tempResult.Default If Empty (drFormsCaregory) join EntityRow in dtEntities.As Enumerable () on (Guid)dataRow1["EntityID"] equals (Guid)EntityRow"ID" into tempResult2 from resultRow2 in tempResult2. Default I f Empty() join CategoryRow in dtCategories.As Enumerable () on (Guid)resultRow[ "CategoryID" ) equals (Guid)CategoryRow[ " ID" ] into tempResult3 from resultRow3 in tempResult3.DefaultIfEmpty() if C ) bark); 3 select new { SubPortalName resultRow3 null? string. Empty: result Ro (dataRowlnull | dataRowi["FormID"]- DBNU11.v FormID FormName (data Rowl null |l dataRowl["FormName "] DBNu CategoryID (result Row null |resultRow[ "CategoryID"].E FormGroupVisible (dataRow1 -null | dataRowl["FormGroupV FormActions (dataRow1 null | dataRow1["FormActions " ] EntityVisible resultRow2 == null false true, QUESTIONS MY QUESTIONS THEIR What is the good RMSE (root-mean-square-error) value range to justify the efficiency of multivariate linear regression model? How do you type the upside down q? Asked today Viewed 254 times Asked today Viewed 3 times THEIR ERRORS My ERRORS Error List X1 Error 2 Warnings Entire Solution Microsoft Visual Studio Code Description Managed Debugging Assistant 'FatalExecutionEngineError has detected a problem in 'CUserssv17386 Desktop Csharp RefProp_cs_Examples bin Debug RefProp cs Examples.exe CS1002 A CS0168 You forgot the semicolon again. Idiot The variable 'e' is declared but never used Additional information: The runtime has encountered a fatal error. The address of the error was at Oxe4737ba2, on thread 0x24dc. The error code is Oxc0000005. This A CS0168 The variable 'e1' is declared but never used error may be a bug in the CLR or in the unsafe or non-verifiable portions of user code. Common sources of this bug include user marshaling errors for COM-interop or PInvoke, which may corrupt the stack. Break when this exception type is thrown Break and open Exception Settings Continue Break Ignore DEJMAN [OC] What the hell is a stack overflow anyway?
Microsoft, True, and Break: OTHER PROGRAMMERS
 VS ME
 THEIR CODE
 MY CODE
 var joinResult
 from dataRowl in FormReportDataTable. As Enumerable ()
 join dataRow2 in dtFormsCategories. As Enumerable ()
 on dataRow1["FormID" ] equals dataRow2["ObjectID"]
 into tempResult
 from resultRow in tempResult.Default If Empty (drFormsCaregory)
 join EntityRow in dtEntities.As Enumerable ()
 on (Guid)dataRow1["EntityID"] equals (Guid)EntityRow"ID"
 into tempResult2
 from resultRow2 in tempResult2. Default I f Empty()
 join CategoryRow in dtCategories.As Enumerable ()
 on (Guid)resultRow[ "CategoryID" ) equals (Guid)CategoryRow[ " ID" ]
 into tempResult3
 from resultRow3 in tempResult3.DefaultIfEmpty()
 if C
 )
 bark);
 3
 select new
 {
 SubPortalName resultRow3 null? string. Empty: result Ro
 (dataRowlnull | dataRowi["FormID"]- DBNU11.v
 FormID
 FormName (data Rowl null |l dataRowl["FormName "] DBNu
 CategoryID (result Row null |resultRow[ "CategoryID"].E
 FormGroupVisible (dataRow1 -null | dataRowl["FormGroupV
 FormActions (dataRow1 null | dataRow1["FormActions " ]
 EntityVisible resultRow2 == null false true,
 QUESTIONS MY QUESTIONS
 THEIR
 What is the good RMSE
 (root-mean-square-error)
 value range to justify the
 efficiency of multivariate
 linear regression model?
 How do you type the
 upside down q?
 Asked today Viewed 254 times
 Asked today Viewed 3 times
 THEIR ERRORS
 My ERRORS
 Error List
 X1 Error
 2 Warnings
 Entire Solution
 Microsoft Visual Studio
 Code
 Description
 Managed Debugging Assistant 'FatalExecutionEngineError has detected a problem in
 'CUserssv17386 Desktop Csharp RefProp_cs_Examples bin Debug
 RefProp cs Examples.exe
 CS1002
 A CS0168
 You forgot the semicolon again. Idiot
 The variable 'e' is declared but never used
 Additional information: The runtime has encountered a fatal error. The address of
 the error was at Oxe4737ba2, on thread 0x24dc. The error code is Oxc0000005. This
 A CS0168
 The variable 'e1' is declared but never used
 error may be a bug in the CLR or in the unsafe or non-verifiable portions of user
 code. Common sources of this bug include user marshaling errors for COM-interop
 or PInvoke, which may corrupt the stack.
 Break when this exception type is thrown
 Break and open Exception Settings
 Continue
 Break
 Ignore
 DEJMAN
[OC] What the hell is a stack overflow anyway?

[OC] What the hell is a stack overflow anyway?

Bad, Complex, and Dude: 1:42 PM Tweet Alexandra Erin Retweeted Audrey @Turbocrit Gamer dudes are wild they'll play a game about overthrowing a corrupt monarch but if there's 1 gay character in it then it's "too political" 8/25/17, 1:50 PM 4,764 Retweets 11.6K Likes Audrey Turbocrit 14h Replying to @Turbocrit Not to mention the whole "having a gay/trans character in a high fantasy setting is completely unrealistic. Also here's some dragons" thing 8 237 829 WC @Hexy27Bernie1 7h Tweet your reply definitelygayrpgideas: definitelygayrpgideas: thesallowbeldam: kirinandvlindertje: vaishino: atomic-darth: pupperoni-pizza: didntfitthenarrative: mitch-turn: Sweet generalization. It’s not about whether a character is trans or gay. Gay characters make sense. People have been gay for millennia. Trans however. Not the case. In a high fantasy setting, how in the balls are they going to perform surgery where they change the sex of the character??? It makes no sense at all. They’d have to explain it. And remember, this is high fantasy, Game of Thrones is also in that category. This is a time where they would reach into your body with an object strikingly similar to a salad tossing spoon to yank out a small piece of arrowhead. Pretty sure they hadn’t figured out a surgery as complex as a sex change… The people complaining that there aren’t enough gay/trans people in stuff like this are just as bad if not moreso than the people who complain about gay/trans people being in stuff like this. Create your own fantasy world filled with nothing but gay/trans people. Make it so that being heterosexual is the minority. All the power to you. Good luck trying to create it. You don’t have to have surgery to be transgender. Lots of transgender people don’t. Transgender people, people who identify with the gender not corresponding with their birth sex, have existed before the surgery. And the existence of and recognition of a third sex or dual sex existed in pre-modern times in lots of places are the world.So, for one, your “how in the balls are they going to perform surgery“ question doesn’t actually matter. They don’t need to in order for transgender people to exist.But if they did want to include transgender people who undergo physical changes to reflect their gender/sexual identity, in a HIGH FANTASY world, there’s actually a really easy answer to that: *ahem* “How are you going to make someone trans in a fantasy setting full of magic spells, potions, and artifacts?” shout out to the elixir of sex shift for covering more than just a gender binary. also lets not forget that in ye old days (aka time of the ancient greeks (aka the bc years)) that people drank the urine of pregnant mares to feminize themselves. like, trans people find a way ;) …the fucking Sumerians had trans people, brosky. Sumerians. They didn’t even have fucking iron, but they had trans women. dude lemme find you a fucking. girdle of sex change from 1st edition woah what’s that?? the first edition efreet cover??? OH HEY ITS A FUCKING GIRDLE OF SEX CHANGE AND THERES ALSO A POSSIBILITY IT REMOVES ALL SEX CHARACTERISTICS FROM THE WEARER it’s on page 145 of the dmg 1st ed. want an easier-to-read screenshot of a pdf?? tldr fuck you it’s pride month welcome back to “tldr fuck you” anyways dnd says trans & nb rights
Bad, Complex, and Dude: 1:42 PM
 Tweet
 Alexandra Erin Retweeted
 Audrey
 @Turbocrit
 Gamer dudes are wild they'll play a game
 about overthrowing a corrupt monarch
 but if there's 1 gay character in it then it's
 "too political"
 8/25/17, 1:50 PM
 4,764 Retweets 11.6K Likes
 Audrey Turbocrit 14h
 Replying to @Turbocrit
 Not to mention the whole "having a gay/trans
 character in a high fantasy setting is
 completely unrealistic. Also here's some
 dragons" thing
 8
 237
 829
 WC @Hexy27Bernie1 7h
 Tweet your reply
definitelygayrpgideas:
definitelygayrpgideas:

thesallowbeldam:

kirinandvlindertje:

vaishino:

atomic-darth:

pupperoni-pizza:

didntfitthenarrative:

mitch-turn:

Sweet generalization. 
It’s not about whether a character is trans or gay. Gay characters make sense. People have been gay for millennia. Trans however. Not the case. In a high fantasy setting, how in the balls are they going to perform surgery where they change the sex of the character??? It makes no sense at all. They’d have to explain it. And remember, this is high fantasy, Game of Thrones is also in that category. This is a time where they would reach into your body with an object strikingly similar to a salad tossing spoon to yank out a small piece of arrowhead. Pretty sure they hadn’t figured out a surgery as complex as a sex change…
The people complaining that there aren’t enough gay/trans people in stuff like this are just as bad if not moreso than the people who complain about gay/trans people being in stuff like this.
Create your own fantasy world filled with nothing but gay/trans people. Make it so that being heterosexual is the minority. All the power to you. Good luck trying to create it.

You don’t have to have surgery to be transgender. Lots of transgender people don’t. Transgender people, people who identify with the gender not corresponding with their birth sex, have existed before the surgery. And the existence of and recognition of a third sex or dual sex existed in pre-modern times in lots of places are the world.So, for one, your “how in the balls are they going to perform surgery“ question doesn’t actually matter. They don’t need to in order for transgender people to exist.But if they did want to include transgender people who undergo physical changes to reflect their gender/sexual identity, in a HIGH FANTASY world, there’s actually a really easy answer to that:

*ahem*


“How are you going to make someone trans in a fantasy setting full of magic spells, potions, and artifacts?”

shout out to the elixir of sex shift for covering more than just a gender binary.

also lets not forget that in ye old days (aka time of the ancient greeks (aka the bc years)) that people drank the urine of pregnant mares to feminize themselves. like, trans people find a way ;)

…the fucking Sumerians had trans people, brosky.
Sumerians.
They didn’t even have fucking iron, but they had trans women.

dude lemme find you a fucking. girdle of sex change from 1st edition
woah what’s that?? the first edition efreet cover???
OH HEY ITS A FUCKING GIRDLE OF SEX CHANGE AND THERES ALSO A POSSIBILITY IT REMOVES ALL SEX CHARACTERISTICS FROM THE WEARER
it’s on page 145 of the dmg 1st ed. want an easier-to-read screenshot of a pdf??
tldr fuck you

it’s pride month welcome back to “tldr fuck you” anyways dnd says trans & nb rights

definitelygayrpgideas: definitelygayrpgideas: thesallowbeldam: kirinandvlindertje: vaishino: atomic-darth: pupperoni-pizza: didntfitth...

Bad, Complex, and Dude: 1:42 PM Tweet Alexandra Erin Retweeted Audrey @Turbocrit Gamer dudes are wild they'll play a game about overthrowing a corrupt monarch but if there's 1 gay character in it then it's "too political" 8/25/17, 1:50 PM 4,764 Retweets 11.6K Likes Audrey Turbocrit 14h Replying to @Turbocrit Not to mention the whole "having a gay/trans character in a high fantasy setting is completely unrealistic. Also here's some dragons" thing 8 237 829 WC @Hexy27Bernie1 7h Tweet your reply definitelygayrpgideas: definitelygayrpgideas: thesallowbeldam: kirinandvlindertje: vaishino: atomic-darth: pupperoni-pizza: didntfitthenarrative: mitch-turn: Sweet generalization. It’s not about whether a character is trans or gay. Gay characters make sense. People have been gay for millennia. Trans however. Not the case. In a high fantasy setting, how in the balls are they going to perform surgery where they change the sex of the character??? It makes no sense at all. They’d have to explain it. And remember, this is high fantasy, Game of Thrones is also in that category. This is a time where they would reach into your body with an object strikingly similar to a salad tossing spoon to yank out a small piece of arrowhead. Pretty sure they hadn’t figured out a surgery as complex as a sex change… The people complaining that there aren’t enough gay/trans people in stuff like this are just as bad if not moreso than the people who complain about gay/trans people being in stuff like this. Create your own fantasy world filled with nothing but gay/trans people. Make it so that being heterosexual is the minority. All the power to you. Good luck trying to create it. You don’t have to have surgery to be transgender. Lots of transgender people don’t. Transgender people, people who identify with the gender not corresponding with their birth sex, have existed before the surgery. And the existence of and recognition of a third sex or dual sex existed in pre-modern times in lots of places are the world.So, for one, your “how in the balls are they going to perform surgery“ question doesn’t actually matter. They don’t need to in order for transgender people to exist.But if they did want to include transgender people who undergo physical changes to reflect their gender/sexual identity, in a HIGH FANTASY world, there’s actually a really easy answer to that: *ahem* “How are you going to make someone trans in a fantasy setting full of magic spells, potions, and artifacts?” shout out to the elixir of sex shift for covering more than just a gender binary. also lets not forget that in ye old days (aka time of the ancient greeks (aka the bc years)) that people drank the urine of pregnant mares to feminize themselves. like, trans people find a way ;) …the fucking Sumerians had trans people, brosky. Sumerians. They didn’t even have fucking iron, but they had trans women. dude lemme find you a fucking. girdle of sex change from 1st edition woah what’s that?? the first edition efreet cover??? OH HEY ITS A FUCKING GIRDLE OF SEX CHANGE AND THERES ALSO A POSSIBILITY IT REMOVES ALL SEX CHARACTERISTICS FROM THE WEARER it’s on page 145 of the dmg 1st ed. want an easier-to-read screenshot of a pdf?? tldr fuck you it’s pride month welcome back to “tldr fuck you” anyways dnd says trans nb rights
Bad, Complex, and Dude: 1:42 PM
 Tweet
 Alexandra Erin Retweeted
 Audrey
 @Turbocrit
 Gamer dudes are wild they'll play a game
 about overthrowing a corrupt monarch
 but if there's 1 gay character in it then it's
 "too political"
 8/25/17, 1:50 PM
 4,764 Retweets 11.6K Likes
 Audrey Turbocrit 14h
 Replying to @Turbocrit
 Not to mention the whole "having a gay/trans
 character in a high fantasy setting is
 completely unrealistic. Also here's some
 dragons" thing
 8
 237
 829
 WC @Hexy27Bernie1 7h
 Tweet your reply
definitelygayrpgideas:

definitelygayrpgideas:

thesallowbeldam:

kirinandvlindertje:

vaishino:

atomic-darth:

pupperoni-pizza:

didntfitthenarrative:

mitch-turn:

Sweet generalization. 
It’s not about whether a character is trans or gay. Gay characters make sense. People have been gay for millennia. Trans however. Not the case. In a high fantasy setting, how in the balls are they going to perform surgery where they change the sex of the character??? It makes no sense at all. They’d have to explain it. And remember, this is high fantasy, Game of Thrones is also in that category. This is a time where they would reach into your body with an object strikingly similar to a salad tossing spoon to yank out a small piece of arrowhead. Pretty sure they hadn’t figured out a surgery as complex as a sex change…
The people complaining that there aren’t enough gay/trans people in stuff like this are just as bad if not moreso than the people who complain about gay/trans people being in stuff like this.
Create your own fantasy world filled with nothing but gay/trans people. Make it so that being heterosexual is the minority. All the power to you. Good luck trying to create it.

You don’t have to have surgery to be transgender. Lots of transgender people don’t. Transgender people, people who identify with the gender not corresponding with their birth sex, have existed before the surgery. And the existence of and recognition of a third sex or dual sex existed in pre-modern times in lots of places are the world.So, for one, your “how in the balls are they going to perform surgery“ question doesn’t actually matter. They don’t need to in order for transgender people to exist.But if they did want to include transgender people who undergo physical changes to reflect their gender/sexual identity, in a HIGH FANTASY world, there’s actually a really easy answer to that:

*ahem*


“How are you going to make someone trans in a fantasy setting full of magic spells, potions, and artifacts?”

shout out to the elixir of sex shift for covering more than just a gender binary.

also lets not forget that in ye old days (aka time of the ancient greeks (aka the bc years)) that people drank the urine of pregnant mares to feminize themselves. like, trans people find a way ;)

…the fucking Sumerians had trans people, brosky.
Sumerians.
They didn’t even have fucking iron, but they had trans women.

dude lemme find you a fucking. girdle of sex change from 1st edition
woah what’s that?? the first edition efreet cover???
OH HEY ITS A FUCKING GIRDLE OF SEX CHANGE AND THERES ALSO A POSSIBILITY IT REMOVES ALL SEX CHARACTERISTICS FROM THE WEARER
it’s on page 145 of the dmg 1st ed. want an easier-to-read screenshot of a pdf??
tldr fuck you

it’s pride month welcome back to “tldr fuck you” anyways dnd says trans  nb rights

definitelygayrpgideas: definitelygayrpgideas: thesallowbeldam: kirinandvlindertje: vaishino: atomic-darth: pupperoni-pizza: didntfitt...