Regex based stuff is a pain in the ass...