Random Drake
  • @randomdrake
  • github
  • LinkedIn

Monthly Archives:: April 2010

Creating a Table of Contents from HTML in PHP with DOMDocument and No Regex

April 27th, 2010 — Technology

While hanging out in the Freenode ##php channel, a user came along asking how to create a table of contents from an HTML string by extracting the header elements. Many suggestions came through including using Regex or a jQuery solution. Using Regex to parse HTML in PHP is a bad idea and can get quite… Read more »

CTO - iCracked - YC W12

My name is David Drake and I've been using and abusing computers for over 25 years. I'm an entrepreneurial full stack developer who enjoys travel, food, quantum physics and acting. I am constantly learning and love to teach.

Recent Posts

  • 25 Years to Mac – How Ubuntu Pushed Me Away from the PC
  • William Hyde Taught Me About Cheese and Passion in Life
  • Getting Started with Satchmo for Django on Ubuntu 12.04
  • Deploying an Existing Django App to Heroku on Ubuntu 12.04
  • Celebrating 30 Years On this World Alongside the Commodore 64


© 2007-2013 David Drake