@Background Pony #D20C
HTML is the language web pages are written in (plus shit like javascript but we don’t need to talk about that)
Twilight is saying that to read web pages, computers should use a dedicated program or library to process HTML code into something that can be displayed. In other words, the computer code used to display web pages should be built specifically for that purpose.
Trixie responds with a regular expression (regex) which does a small part of HTML processing (she’s extracting the contents of a <div> element in a webpage). Regular expressions are an incredibly generic tool for processing strings of text (of which an HTML web page is just one example) by matching patterns. They’re also often inefficient, error-prone, and hard to work with unless working with simple patterns or very predictable text.
(Programmer joke: Some programmers, when faced with a problem, think ‘I know, I’ll use regular expressions!’ Now they have two problems.)
FOUR THOUSAND UPVOTES ON STACK OVERFLOW?!?!?!
This is why I don’t fw web development this is cursed
HTML is the language web pages are written in (plus shit like javascript but we don’t need to talk about that)