Issue #1241300 by slater101: Fix undefined index warning by using preg_replace() instead of hackish array_slice() of explode().