Thelmrac: That regex is so wrong in so many ways its just sad. You should abuse regex for such simple tasks, it's just stupid.
That's not stupid at all. He shortened it into one line.