It's so tempting to tell you "never implement your own html parser using regular expressions" just to make you do it.
I triple dog dare you!
https://www.youtube.com/watch?v=mc6pk2FRhbA