Done some of the evil regex. It's quite straight forward but nether-the-less...ech. :-*