🔥 | 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

Bad, Beer, and Life: Guillermo del Toro says he saw a real UFO and it was 'horribly designed' The Shape of Water director Guillermo 2.4K by Laura Hudson/2d thefingerfuckingfemalefury: elphabaforpresidentofgallifrey: doux-amer: truestoriesaboutme: dragon-in-a-fez: imagine you saw an alien spacecraft and your first reaction was to critique its flat color palette and unimaginative lines The Truth is Out There and It Has Bad Aesthetics Because context actually makes the already great headline even greater: “I know this is horrible,” del Toro continues. “You sound like a complete lunatic, but I saw a UFO. I didn’t want to see a UFO. It was horribly designed. I was with a friend. We bought a six-pack. We didn’t consume it, and there was a place called Cerro del Cuatro, “Mountain of the Four,” on the periphery of Guadalajara. We said, ‘Let’s go to the highway.’ We sit down to watch the stars and have the beer and talk. We were the only guys by the freeway. And we saw a light on the horizon going super-fast, not linear. And I said, ‘Honk and flash the lights.’ And we started honking.” The UFO, says del Toro, “Went from 1,000 meters away [to much closer] in less than a second — and it was so crappy. It was a flying saucer, so clichéd, with lights [blinking]. It’s so sad: I wish I could reveal they’re not what you think they are. They are what you think they are. And the fear we felt was so primal. I have never been that scared in my life. We jumped in the car, drove really fast. It was following us, and then I looked back and it was gone.” (x) the same man that made a movie about making giant robots to fight aliens SAW SOME ALIENS, INSULTED THEIR AESTHETIC, and RAN AWAY SCREAMING “there is intelligent life out there but it’s really fuckin tacky”
Bad, Beer, and Life: Guillermo del Toro says he saw a
 real UFO and it was 'horribly
 designed'
 The Shape of Water director Guillermo
 2.4K by Laura Hudson/2d
thefingerfuckingfemalefury:

elphabaforpresidentofgallifrey:

doux-amer:

truestoriesaboutme:

dragon-in-a-fez:
imagine you saw an alien spacecraft and your first reaction was to critique its flat color palette and unimaginative lines
The Truth is Out There and It Has Bad Aesthetics

Because context actually makes the already great headline even greater:

“I know this is horrible,” del Toro continues. “You sound like a complete lunatic, but I saw a UFO. I didn’t want to see a UFO. It was horribly designed. I was with a friend. We bought a six-pack. We didn’t consume it, and there was a place called Cerro del Cuatro, “Mountain of the Four,” on the periphery of Guadalajara. We said, ‘Let’s go to the highway.’ We sit down to watch the stars and have the beer and talk. We were the only guys by the freeway. And we saw a light on the horizon going super-fast, not linear. And I said, ‘Honk and flash the lights.’ And we started honking.”
The UFO, says del Toro, “Went from 1,000 meters away [to much closer] in less than a second — and it was so crappy. It was a flying saucer, so clichéd, with lights [blinking]. It’s so sad: I wish I could reveal they’re not what you think they are. They are what you think they are. And the fear we felt was so primal. I have never been that scared in my life. We jumped in the car, drove really fast. It was following us, and then I looked back and it was gone.”
(x)



the same man that made a movie about making giant robots to fight aliens SAW SOME ALIENS, INSULTED THEIR AESTHETIC, and RAN AWAY SCREAMING

“there is intelligent life out there but it’s really fuckin tacky”

thefingerfuckingfemalefury: elphabaforpresidentofgallifrey: doux-amer: truestoriesaboutme: dragon-in-a-fez: imagine you saw an alien spa...

Definitely, Fire, and God: royaltealovingkookiness: deeperthanswords: royaltealovingkookiness: The first training of Zuko we see, Iroh shoots a fireball right into Zuko’s face - while Zuko just stands there unflinching. It’s the very first episode, and Zuko & Iroh are the obvious villains, and it just seems like some macho bs they do.  And then comes the duel with Zhao, and Zuko is down, but when he sees that flaming fist to his face, something lets loose inside him that helps him turn the fight around…But it’s not until we learn Zuko’s backstory that all this gets a whole new meaning.  Why would Zuko still be on basics if not because he suffered a huge setback after his agni kai? Imagine how much hard work, patience it was to build Zuko back up again, so he would not freeze in blind panic (or curl up in a ball) when fire gets close to his face. I think Iroh practiced this with him all the time until he could stand there unflinching (knowing that Iroh is in full control of his bending and trusting that his uncle would never hurt him). And when it came to the duel with Zhao, Zuko could react in a RL situation instead of freezing up, and turn all the negative feelings (rage, anger, pain, whatever) into fuel to win the fight against a bender who is much more skilled than he is.  And Iroh obviously drilled him with control and restraint, because no matter how much he lets his rage loose, he has enough control not to hurt Zhao and enough self-restraint not to burn him at the end. I definitely think it was a deliberate choice on Iroh’s part to hold back on teaching offensive forms to Zuko beyond the basics (knowing that combining those with his unprocessed anger could result in him being out of control and hurt people). Instead, it seems he concentrated on teaching him defensive forms, fire breath, heat control, and so on… What the FUCK iroh was the real mvp of this whole show my god Indeed. It goes over many people’s head, but he made a huge difference. It was mostly assists and defensive plays though, not the flashy stuff. I love that narrative so much, how you change the world one person at a time and not only violence and hate, but also love and kindness creates ripple effects. 
Definitely, Fire, and God: royaltealovingkookiness:
deeperthanswords:

royaltealovingkookiness:


The first training of Zuko we see, Iroh shoots a fireball right into Zuko’s face - while Zuko just stands there unflinching. It’s the very first episode, and Zuko & Iroh are the obvious villains, and it just seems like some macho bs they do.  And then comes the duel with Zhao, and Zuko is down, but when he sees that flaming fist to his face, something lets loose inside him that helps him turn the fight around…But it’s not until we learn Zuko’s backstory that all this gets a whole new meaning. 
Why would Zuko still be on basics if not because he suffered a huge setback after his agni kai? Imagine how much hard work, patience it was to build Zuko back up again, so he would not freeze in blind panic (or curl up in a ball) when fire gets close to his face. I think Iroh practiced this with him all the time until he could stand there unflinching (knowing that Iroh is in full control of his bending and trusting that his uncle would never hurt him). And when it came to the duel with Zhao, Zuko could react in a RL situation instead of freezing up, and turn all the negative feelings (rage, anger, pain, whatever) into fuel to win the fight against a bender who is much more skilled than he is. 
And Iroh obviously drilled him with control and restraint, because no matter how much he lets his rage loose, he has enough control not to hurt Zhao and enough self-restraint not to burn him at the end. I definitely think it was a deliberate choice on Iroh’s part to hold back on teaching offensive forms to Zuko beyond the basics (knowing that combining those with his unprocessed anger could result in him being out of control and hurt people). Instead, it seems he concentrated on teaching him defensive forms, fire breath, heat control, and so on…


What the FUCK iroh was the real mvp of this whole show my god

Indeed. It goes over many people’s head, but he made a huge difference. It was mostly assists and defensive plays though, not the flashy stuff.
I love that narrative so much, how you change the world one person at a time and not only violence and hate, but also love and kindness creates ripple effects. 

royaltealovingkookiness: deeperthanswords: royaltealovingkookiness: The first training of Zuko we see, Iroh shoots a fireball right into ...

Beautiful, Head, and Muslim: HOW TO DRAW HIJAB @souratgar certified Muslim WHAT IS HIJAB? "Hijab" is a form of dress code in Islam. Not only does it apply to women, but it applies to men as well. Hijab means dressing modestly; covering your arms, legs, and wearing loose clothing. There's a lot of different types of hijab! Here's the 3 main types: (somehimes the entire) face is covereel @Souratgar HIJAB FOR THE SAKE OF SPACE, WEL LOOK ONLY AT THO STYLE) NIQAB BURQA Sometimes hijabis will wear a CHADOR over their hijab. A chador is a fabric that hangs from your head (it's almost like a superhero cape!) Some Muslim women will wear chador while praying. M SUPER They come in a lot of different designs and colours. The most common colour is black. Com FY However, there are plenty of chadors that have beautiful floral designs. The fabric used to make chadors is usually cotton. @souratgar "OKAY SO HOW DO I DRAN IT? It's very easy! Drawing a hijab requi res one skill: knowing how fabric folds! And sometimes, depending on how tight the hijab is there won't be many fabric folds! @souratgar MIX TIGHT LOOSE You can even design your own! The criteria for a hijab is - Covers ears, neck, and hair - *Has* to be worn with modest clothing, no bikini armour sorry :( REMEMBER! To use references! But also, if a hijiabi has a problem with your design or your drawing of a hijabi, listen to them! You can always learn new things from others, especially those you're trying to represent. @souratgar THANKS GOOD LUCK kamikazevendetta: souratgar: I made an art tutorial on how to draw hijab and hijabis! Ahhhhh!!! Its so good!! Thank you lovely person for making this, maybe ill finally get to see people dressed like me in art soon!! (Also thank you for the note on the modest clothing- wearing a hijab isnt like choosing to wear a hat, while how each hijabi wears it is different and totally up to her, its frustrating to see it added on as an afterthought in media to gain representation points. A large part of the reason many wear it is the lack of sexualisation it gives us, so please keep that in mind!)
Beautiful, Head, and Muslim: HOW TO DRAW
 HIJAB
 @souratgar
 certified
 Muslim

 WHAT IS HIJAB?
 "Hijab" is a form of dress code in Islam. Not only does it apply to women, but it applies to men as well.
 Hijab means dressing modestly; covering your arms, legs, and wearing loose clothing.
 There's a lot of different types of hijab! Here's the 3 main types:
 (somehimes the entire)
 face is covereel
 @Souratgar
 HIJAB
 FOR THE SAKE
 OF SPACE, WEL
 LOOK ONLY AT THO
 STYLE)
 NIQAB
 BURQA

 Sometimes hijabis will wear a CHADOR over their hijab.
 A chador is a fabric that hangs from your head
 (it's almost like a superhero cape!)
 Some Muslim women will wear chador while praying.
 M SUPER
 They come in a lot of different designs
 and colours. The most common colour is black.
 Com FY
 However, there are plenty of chadors that
 have beautiful floral designs.
 The fabric used to make chadors is usually cotton.
 @souratgar

 "OKAY SO HOW DO
 I DRAN IT?
 It's very easy! Drawing a hijab requi res one skill: knowing how
 fabric folds! And sometimes, depending on how tight the hijab is
 there won't be many fabric folds!
 @souratgar
 MIX
 TIGHT
 LOOSE
 You can even design your own! The criteria for a hijab is
 - Covers ears, neck, and hair
 - *Has* to be worn with modest clothing,
 no bikini armour sorry :(

 REMEMBER!
 To use references!
 But also, if a hijiabi has a problem with your design
 or your drawing of a hijabi, listen to them!
 You can always learn new things from others,
 especially those you're trying to
 represent.
 @souratgar
 THANKS
 GOOD LUCK
kamikazevendetta:

souratgar:
I made an art tutorial on how to draw hijab and hijabis!
Ahhhhh!!! Its so good!! Thank you lovely person for making this, maybe ill finally get to see people dressed like me in art soon!! 

(Also thank you for the note on the modest clothing- wearing a hijab isnt like choosing to wear a hat, while how each hijabi wears it is different and totally up to her, its frustrating to see it added on as an afterthought in media to gain representation points. A large part of the reason many wear it is the lack of sexualisation it gives us, so please keep that in mind!)

kamikazevendetta: souratgar: I made an art tutorial on how to draw hijab and hijabis! Ahhhhh!!! Its so good!! Thank you lovely person for m...