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... - http://www.jacobd.com/post...
All the matter that makes up the human race could fit in a sugar cube Atoms are 99.9999999999999 per cent empty space. As Tom Stoppard put it: “Make a fist, and if your fist is as big as the nucleus of an atom, then the atom is as big as St Paul’s, and if it happens to be a hydrogen atom, then it has a single electron flitting about like a moth in... - http://www.jacobd.com/post...
The Large Hadron Collider, the world’s most powerful particle accelerator, just cannot catch a break. First, a coolant leak destroyed some of the magnets that guide the energy beam. Then LHC officials postponed the restart of the machine to add additional safety features. Now, a bird dropping a piece of bread on a section of the accelerator has,... - http://www.jacobd.com/post...