Some people, when confronted with a problem, think "I know, I’ll use regular expressions." Now they have two problems.
At the end of the day, ship the fucking thing! It’s great to rewrite you code and make it cleaner and by the third time it’ll actually be pretty. But that’s not the point—you’re not here to write code; you’re here to ship products.