Fix deprecated preg_replace php 5.5