Imgur
Imgur

Imgur

Job Security
Job Security

Job Security

airport
 airport

airport

cyber security
cyber security

cyber security

Funny
Funny

Funny

Guard
Guard

Guard

Meme Center
Meme Center

Meme Center

security guard
security guard

security guard

Images
Images

Images

create
create

create

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

Bodies , Bored, and Dad: aRARE daddysbuterfly: pomegranateandivy: canisfamiliaris: gamzees-hole: razzretina: sarahsellaphix: officialgarrusvakarian: we-are-star-stuff: zerostatereflex: An Octopus unscrewing a lid from the inside. Octopuses are going to kill us all someday I had a biology teacher that told us this story about an octopus at an aquarium in Australia. The staff were concerned because their population of crustaceans kept disappearing. No bodies or anything. So they checked the video feed to find out what’s up. Across from the the crustacean tank was a small octopus tank. This little fucker squeezed out of a tiny hole at the top of his tank, walk across the hall, and get into the crustacean tank. He would then hunt and eat. After he was done, he crawled back out and get back in his tank Here’s the kicker: security guards patrolled the area. The staff realized that the octopus had memorized the security’s routine. It would escape and be back between the guards’ round. My friend who worked at Henry Doorly Zoo in Omaha, Nebraska had a similar story.  Rare fish were disappearing, they suspected theft, and so set up a camera. An octopus was unlocking the top of its tank, walking across the suspended walkway, unlocking the other tank, eating his fill, re-locking the other tank, then re-locking its own tank. I can’t remember what zoo this happened at, but there was another octopus somewhere who was unscrewing a water valve in the room where its tank was located and routinely flooding the place. The staffers had no idea what it was until they filmed the octopus caught in the act. RELEASE THE KRAKEN!! But, sir, it has already released itself! Octopus Steals Video Camera, Films Own Escape Octopus Escapes from Tank to Prowl on its Neighbors Octopus Escape — 600-pound (272-kilogram) octopus wriggles through a passageway the size of a quarter Legging It: Evasive Octopus Has Been Allowed to Look for Love Octopus Escapes through Small Hole in Ship My dad worked in a lab and one of the rooms had a tank with an octopus in it. If they didn’t go play with the octopus he got bored and would climb out of his tank and steal the paperwork off the desks, and drag stuff into his tank to let the scientists know he was upset with them. 😳😳😳
Bodies , Bored, and Dad: aRARE
daddysbuterfly:

pomegranateandivy:

canisfamiliaris:

gamzees-hole:

razzretina:

sarahsellaphix:

officialgarrusvakarian:

we-are-star-stuff:

zerostatereflex:

An Octopus unscrewing a lid from the inside.

Octopuses are going to kill us all someday

I had a biology teacher that told us this story about an octopus at an aquarium in Australia. The staff were concerned because their population of crustaceans kept disappearing. No bodies or anything. So they checked the video feed to find out what’s up.
Across from the the crustacean tank was a small octopus tank. This little fucker squeezed out of a tiny hole at the top of his tank, walk across the hall, and get into the crustacean tank. He would then hunt and eat. After he was done, he crawled back out and get back in his tank
Here’s the kicker: security guards patrolled the area. The staff realized that the octopus had memorized the security’s routine. It would escape and be back between the guards’ round.

My friend who worked at Henry Doorly Zoo in Omaha, Nebraska had a similar story.  Rare fish were disappearing, they suspected theft, and so set up a camera. An octopus was unlocking the top of its tank, walking across the suspended walkway, unlocking the other tank, eating his fill, re-locking the other tank, then re-locking its own tank.

I can’t remember what zoo this happened at, but there was another octopus somewhere who was unscrewing a water valve in the room where its tank was located and routinely flooding the place. The staffers had no idea what it was until they filmed the octopus caught in the act.

RELEASE THE KRAKEN!! But, sir, it has already released itself!

Octopus Steals Video Camera, Films Own Escape
Octopus Escapes from Tank to Prowl on its Neighbors
Octopus Escape — 600-pound (272-kilogram) octopus wriggles through a passageway the size of a quarter
Legging It: Evasive Octopus Has Been Allowed to Look for Love
Octopus Escapes through Small Hole in Ship

My dad worked in a lab and one of the rooms had a tank with an octopus in it. If they didn’t go play with the octopus he got bored and would climb out of his tank and steal the paperwork off the desks, and drag stuff into his tank to let the scientists know he was upset with them.


😳😳😳

daddysbuterfly: pomegranateandivy: canisfamiliaris: gamzees-hole: razzretina: sarahsellaphix: officialgarrusvakarian: we-are-star-stu...