Went crazy with RegEx. Totally worth it.