I know I can probably do this using a few $regsubex's, but I am yet to learn how to use regex properly. Sorry about the massive $replace. :P