Did some regex.. but I'm bored of this now