Had a comma breaking the preg_replace. This fixed it.